/*
Theme Name: SiBridges
Theme URI: https://example.com/
Author: ESCIT
Author URI: https://github.com/escit
Description: A dark, modern WordPress theme converted from provided index.html for SiBridges.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sibridges
*/

:root {
  --primary: #e44c65;
  --secondary: #5b7fff;
  --bg: #121212;
  --text: #ffffff;
  --highlight: #ff668c;
  --gradient: linear-gradient(45deg, #5b7fff, #e44c65);
}

/* Basic resets */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  margin-right: 1rem;
}

.logo img {
  height: 50px;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--highlight);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-link:hover {
  color: var(--highlight);
  background: rgba(255, 102, 140, 0.1);
  transform: scale(1.1);
}

.lang-link.active {
  color: var(--primary);
  background: rgba(228, 76, 101, 0.2);
  font-weight: bold;
}

.flag-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.lang-link:hover .flag-icon {
  transform: scale(1.2);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0 0.5rem;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.mobile-language-switcher .lang-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  color: #fff;
  border-bottom: 1px solid #333;
  font-weight: normal;
  text-decoration: none;
}

.mobile-language-switcher .lang-link:hover {
  background-color: #222;
}

.mobile-language-switcher .lang-link.active {
  background: var(--primary);
  color: white;
}

.mobile-language-switcher .flag-icon {
  font-size: 1.1rem;
}

.hero {
  text-align: center;
  padding: 100px 20px;
  background: 
    linear-gradient(45deg, rgba(91, 127, 255, 0.4), rgba(228, 76, 101, 0.4)),
    url('https://images.pexels.com/photos/163125/board-printed-circuit-board-computer-electronics-163125.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(91, 127, 255, 0.3), rgba(228, 76, 101, 0.3));
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--highlight);
}

/* Enhanced About Section */
.about-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10,0 L10,10 M0,10 L20,10 M10,10 L10,20" stroke="rgba(91,127,255,0.1)" stroke-width="0.5" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>') repeat;
  opacity: 0.3;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-card {
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUpFade 0.8s ease forwards;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.4s;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.about-content {
  padding-left: 2rem;
}

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.highlight-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.95rem;
  color: #e0e0e0;
}

@keyframes slideUpFade {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content {
    padding-left: 0;
  }

  .about-content h2 {
    font-size: 2.2rem;
    text-align: center;
  }

  .highlight-features {
    grid-template-columns: 1fr;
  }
}

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

.card {
  background: #1c1c1c;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.footer {
  background-color: #000;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Footer Language Switcher */
.footer .lang-link {
  transition: all 0.3s ease;
}

.footer .lang-link:hover {
  background: rgba(255, 102, 140, 0.1);
  transform: scale(1.1);
}

.footer .lang-link.active {
  background: rgba(228, 76, 101, 0.2);
}

.footer .lang-link:hover .flag-icon {
  transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  nav {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: #000;
    margin-top: 1rem;
  }

  nav a {
    padding: 1rem;
    border-top: 1px solid #333;
  }

  nav.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
    order: -1;
  }

  .logo {
    margin: auto;
  }
  
  .language-switcher {
    display: none;
  }
}

/* Mobile Sidebar Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background-color: #000;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 1500;
  padding-top: 60px;
}

.mobile-menu a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  border-bottom: 1px solid #333;
  font-weight: bold;
  text-decoration: none;
}

.mobile-menu a:hover {
  background-color: #222;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Show mobile menu */
.mobile-menu.open {
  left: 0;
}

/* Image showcase sections */
.image-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.image-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-content {
  z-index: 2;
  position: relative;
}

.image-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.image-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.image-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.3s ease;
}

.image-visual:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.image-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(91, 127, 255, 0.2), rgba(228, 76, 101, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-visual:hover .image-overlay {
  opacity: 1;
}

.tech-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.tech-item {
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(91, 127, 255, 0.2);
}

.tech-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  color: white;
}

.feature-showcase {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 80px 20px;
  text-align: center;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.showcase-card {
  background: linear-gradient(145deg, #222, #1a1a1a);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  position: relative;
}

.showcase-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(91, 127, 255, 0.1), rgba(228, 76, 101, 0.1));
  border-radius: 15px;
}

@media (max-width: 768px) {
  .image-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-visual {
    transform: none;
  }

  .tech-gallery {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
