/* ==========================
   Briocom Solutions Theme
   Black • White • Red
   Improved Professional CSS
   ========================== */

:root{
  --black:#000000;
  --white:#ffffff;
  --red:#dc2626;
  --gray:#a1a1aa;
  --dark:#0a0a0a;
  --card:#111111;
  --border:#222222;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:var(--black);
  color:var(--white);
  line-height:1.6;
  overflow-x:hidden;
}

/* ================= NAVBAR ================= */

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 8%;
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(0,0,0,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
  transition:0.3s ease;
}

.navbar.active{
  background:var(--dark);
  box-shadow:0 0 20px rgba(220,38,38,0.25);
}

.logo {
  display: flex;
  align-items: center;
  height: 105px;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 100px;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

nav a{
  margin-left:25px;
  color:var(--white);
  text-decoration:none;
  font-weight:500;
  position:relative;
  transition:0.3s;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background:var(--red);
  transition:0.3s;
}

nav a:hover{
  color:var(--red);
}

nav a:hover::after{
  width:100%;
}

.navbar nav a {
  position: relative;
}

.navbar nav a.active {
  color: var(--red);
  font-weight: 600;
}

.navbar nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* ================= HERO ================= */

.hero,
.page-hero{
  min-height:90vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:100px 8%;
  background:radial-gradient(circle at top, rgba(220,38,38,0.15), transparent 60%);
}

.hero h1,
.page-hero h1{
  font-size:64px;
  font-weight:900;
  line-height:1.1;
  margin-bottom:10px;
  animation:fadeUp 1s ease;
}

.hero p,
.page-hero p{
  max-width:700px;
  color:var(--gray);
  font-size:18px;
  margin-bottom:10px;
}

button{
  background:var(--red);
  color:var(--white);
  border:none;
  padding:14px 30px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s ease;
  box-shadow:0 0 0 transparent;
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 25px rgba(220,38,38,0.4);
}

/* ================= SECTIONS ================= */

.section{
  padding:100px 8%;
}

.section h2{
  font-size:42px;
  margin-bottom:20px;
  text-align:center;
  position:relative;
}

.section h2::after{
  content:"";
  width:80px;
  height:3px;
  background:var(--red);
  display:block;
  margin:15px auto 0;
  border-radius:5px;
}

/* ================= GRID SYSTEM ================= */

.cards,
.hero-images,
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:40px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  padding:25px;
  border-radius:18px;
  transition:0.4s ease;
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(135deg,rgba(220,38,38,0.1),transparent);
  opacity:0;
  transition:0.3s;
}

.card:hover{
  transform:translateY(-10px);
  border-color:var(--red);
}

.card:hover::before{
  opacity:1;
}

.card h3{
  margin:15px 0;
  font-size:22px;
}

.card p{
  color:var(--gray);
  font-size:15px;
}

/* ================= IMAGES ================= */

img{
  width:100%;
  border-radius:14px;
  transition:0.4s ease;
  filter:brightness(0.9);
}

img:hover{
  transform:scale(1.05);
  filter:brightness(1.1);
}

/* ================= ABOUT GRID ================= */

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}

/* ================= CONTACT FORM ================= */

.contact-form{
  display:flex;
  flex-direction:column;
  gap:15px;
  max-width:600px;
  margin:auto;
}

.contact-form input,
.contact-form textarea{
  padding:14px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--white);
  outline:none;
  transition:0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--red);
  box-shadow:0 0 10px rgba(220,38,38,0.3);
}

/* ================= footer ================= */

.footer{
  background:#000;
  border-top:1px solid #222;
  padding:60px 8% 20px;
  color:#fff;
}

.footer-container{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:30px;
  margin-bottom:30px;
}

.footer-left h3{
  color:#dc2626;
  font-size:24px;
  margin-bottom:5px;
}

.footer-left p{
  color:#aaa;
}

.footer-center a{
  color:#dc2626;
  text-decoration:none;
  font-weight:600;
}

.footer-right{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-right a{
  color:#fff;
  text-decoration:none;
  transition:0.3s;
}

.footer-right a:hover{
  color:#dc2626;
}

.footer-bottom{
  text-align:center;
  border-top:1px solid #222;
  padding-top:15px;
  color:#777;
  font-size:14px;
}

/* IMAGE ENLARGE EFFECT */

img {
  width: 100%;
  border-radius: 14px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* HOVER ENLARGE EFFECT */

img:hover {
  transform: scale(2.0);
  z-index: 10;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.gallery img,
.hero-images img,
.card img {
  will-change: transform;
}

/* HERO SECTION */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* VIDEO BACKGROUND */

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  object-fit: cover;
  z-index: -2;
}

/* DARK OVERLAY */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

/* HERO CONTENT */

.hero-content {
  position: relative;
  max-width: 800px;
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: #d1d5db;
  margin-bottom: 30px;
}

/* BUTTON */

button {
  background: #dc2626;
  border: none;
  padding: 14px 30px;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-3px);
  background: #ef4444;
}

@media(max-width:768px){

  .hero-content h1{
    font-size:38px;
  }

  .hero-content p{
    font-size:16px;
  }

}

/* SERVICE CARD LINKS */

.service-link{
  text-decoration:none;
  color:white;
}

.service-link .card{
  height:100%;
  cursor:pointer;
}

.service-link:hover .card{
  transform:translateY(-10px);
  border-color:var(--red);
}

.service-link:hover h3{
  color:var(--red);
}

/* ==========================================================
   BRIOCOM SOLUTIONS
   RESPONSIVE + AESTHETIC ADDITIONS
   Original values preserved
   ========================================================== */

/* =========================
   RESPONSIVE GLOBAL SAFETY
   ========================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  max-width: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}

/* =========================
   LARGE PC / DESKTOP
   ========================= */

@media (min-width: 1200px) {

  .navbar {
    padding-left: 8%;
    padding-right: 8%;
  }

  .section {
    padding-left: 8%;
    padding-right: 8%;
  }

  .hero,
  .page-hero {
    padding-left: 8%;
    padding-right: 8%;
  }

}

/* =========================
   LAPTOPS
   ========================= */

@media (max-width: 1024px) {

  .navbar {
    padding-left: 5%;
    padding-right: 5%;
  }

  .section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero,
  .page-hero {
    padding-left: 5%;
    padding-right: 5%;
  }

  .about-grid {
    gap: 35px;
  }

  nav a {
    margin-left: 18px;
  }

}

/* =========================
   TABLETS
   ========================= */

@media (max-width: 768px) {

  /* NAVIGATION */

  .navbar {
    padding-left: 4%;
    padding-right: 4%;
  }

  .logo {
    flex-shrink: 0;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }

  nav a {
    margin-left: 12px;
  }

  /* HERO */

  .hero,
  .page-hero {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 64px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 64px;
    max-width: 100%;
  }

  .hero p,
  .page-hero p,
  .hero-content p {
    max-width: 700px;
  }

  /* ABOUT */

  .about-grid {
    grid-template-columns: 1fr;
  }

  /* GRID */

  .cards,
  .hero-images,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* FOOTER */

  .footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .footer-container {
    justify-content: center;
  }

}

/* =========================
   MOBILE PHONES
   ========================= */

@media (max-width: 600px) {

  /* NAVBAR */

  .navbar {
    padding: 10px 4%;
    gap: 10px;
  }

  .logo {
    height: 150px;
  }

  .logo img {
    height: 120px;
    max-width: 130px;
  }

  nav {
    gap: 5px;
  }

  nav a {
    margin-left: 8px;
    font-size: 14px;
  }

  /* HERO */

  .hero,
  .page-hero {
    padding: 100px 5%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 64px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-content {
    width: 100%;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 64px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero p,
  .page-hero p,
  .hero-content p {
    font-size: 18px;
    width: 100%;
  }

  /* SECTIONS */

  .section {
    padding: 100px 5%;
  }

  .section h2 {
    font-size: 42px;
    word-wrap: break-word;
  }

  /* GRID */

  .cards,
  .hero-images,
  .gallery {
    grid-template-columns: 1fr;
  }

  /* CARDS */

  .card {
    width: 100%;
  }

  /* IMAGES */

  .gallery img:hover,
  .hero-images img:hover,
  .card img:hover {
    transform: scale(1.05);
  }

  /* CONTACT */

  .contact-form {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  /* FOOTER */

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
  }

}

/* =========================
   SMALL MOBILE PHONES
   ========================= */

@media (max-width: 480px) {

  .navbar {
    padding-left: 3%;
    padding-right: 3%;
  }

  .logo {
    height: 105px;
  }

  .logo img {
    height: 100px;
    max-width: 120px;
  }

  nav {
    max-width: 65%;
    justify-content: flex-end;
  }

  nav a {
    margin-left: 6px;
    font-size: 13px;
  }

  /* HERO */

  .hero,
  .page-hero {
    padding-left: 4%;
    padding-right: 4%;
  }

  .hero-content {
    padding: 20px 10px;
  }

  /* BUTTON */

  button {
    max-width: 100%;
  }

  /* SECTION */

  .section {
    padding-left: 4%;
    padding-right: 4%;
  }

  /* FOOTER */

  .footer {
    padding-left: 4%;
    padding-right: 4%;
  }

}

/* =========================
   VERY SMALL PHONES
   ========================= */

@media (max-width: 360px) {

  .navbar {
    padding-left: 2%;
    padding-right: 2%;
  }

  .logo img {
    max-width: 120px;
  }

  nav {
    max-width: 60%;
  }

  nav a {
    margin-left: 4px;
    font-size: 12px;
  }

  .hero,
  .page-hero {
    padding-left: 3%;
    padding-right: 3%;
  }

  .section {
    padding-left: 3%;
    padding-right: 3%;
  }

}

/* =========================
   TOUCHSCREEN DEVICES
   ========================= */

@media (hover: none) and (pointer: coarse) {

  button:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover {
    transform: none;
  }

  .service-link:hover .card {
    transform: none;
  }

}

/* =========================
   LANDSCAPE PHONES
   ========================= */

@media (max-width: 768px) and (orientation: landscape) {

  .hero,
  .page-hero {
    min-height: 90vh;
  }

  .hero-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

}

/* =========================
   PREVENT LONG TEXT BREAKING
   ========================= */

h1,
h2,
h3,
p,
a,
button {
  overflow-wrap: anywhere;
}

/* =========================
   BETTER TOUCH EXPERIENCE
   ========================= */

button,
nav a,
.service-link {
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   FORM MOBILE FRIENDLINESS
   ========================= */

@media (max-width: 600px) {

  .contact-form input,
  .contact-form textarea,
  button {
    max-width: 100%;
  }

}

/* =========================
   VIDEO MOBILE SUPPORT
   ========================= */

.hero-video {
  max-width: none;
}

/* =========================
   MOBILE IMAGE PROTECTION
   ========================= */

@media (max-width: 600px) {

  img {
    max-width: 100%;
  }

  .logo img {
    max-width: 120px;
  }

}

/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

}

/* =========================
   FOOTER LOGO
   ========================= */

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  width: auto;
  height: 100px;
  max-width: 120px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  filter: none;
  transition: 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
  filter: none;
}

/* =========================
   WHATSAPP FOOTER
   ========================= */

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 0;
  filter: none;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.whatsapp-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.footer-center p {
  margin-top: 8px;
}


/* =========================================================
   UNIVERSAL NAVIGATION DROPDOWNS
   ========================================================= */

.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 2000;
}


/* =========================================================
   BASIC DROPDOWN
   ========================================================= */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: var(--black);
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 8px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 9999;
}


/* =========================================================
   SHOW DROPDOWN
   ========================================================= */

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* =========================================================
   STANDARD DROPDOWN LINKS
   ========================================================= */

.dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 7px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--red);
  color: var(--white);
  padding-left: 18px;
}


/* =========================================================
   EXPLORE MEGA MENU
   ========================================================= */

.explore-menu {

  /*
   IMPORTANT:
   Do NOT center this menu with translate().
   This prevents the menu from being clipped.
  */

  left: auto;
  right: 0;
  width: min(760px, calc(100vw - 30px));
  min-width: 620px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 0;
  padding: 0;

  overflow: hidden;

  border:
    1px solid #444;

  border-radius: 14px;

  background:
    var(--black);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.65);

  transform:
    translateY(12px);
}


/* =========================================================
   EXPLORE MENU SHOW
   ========================================================= */

.nav-dropdown:hover > .explore-menu,
.nav-dropdown:focus-within > .explore-menu {

  transform:
    translateY(0);
}


/* =========================================================
   DROPDOWN GROUP
   ========================================================= */

.dropdown-group {

  min-width: 0;

  display: flex;

  flex-direction: column;

  padding: 24px 22px;
}


/* =========================================================
   SECOND COLUMN
   ========================================================= */

.dropdown-group + .dropdown-group {

  border-left:
    1px solid #333;
}


/* =========================================================
   CATEGORY HEADING
   ========================================================= */

.dropdown-heading {

  display: block;

  margin-bottom: 12px;

  padding:
    0 10px 12px;

  color:
    var(--red);

  font-size:
    13px;

  font-weight:
    800;

  text-transform:
    uppercase;

  letter-spacing:
    1.2px;

  border-bottom:
    1px solid #333;
}


/* =========================================================
   EXPLORE LINKS
   ========================================================= */

.explore-menu .dropdown-group a {

  position: relative;

  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;

  min-height: 44px;

  padding:
    10px 12px;

  margin:
    2px 0;

  color:
    var(--white);

  font-size:
    14px;

  font-weight:
    500;

  border-radius:
    7px;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


/* =========================================================
   ARROW
   ========================================================= */

.explore-menu .dropdown-group a::after {

  content:
    "→";

  color:
    var(--red);

  font-size:
    15px;

  opacity:
    0;

  transform:
    translateX(-6px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


/* =========================================================
   EXPLORE LINK HOVER
   ========================================================= */

.explore-menu .dropdown-group a:hover {

  background:
    rgba(220, 38, 38, 0.16);

  color:
    var(--white);

  padding-left:
    16px;

  transform:
    translateX(2px);
}

.explore-menu .dropdown-group a:hover::after {

  opacity:
    1;

  transform:
    translateX(0);
}


/* =========================================================
   FIRST COLUMN
   ========================================================= */

.explore-menu .dropdown-group:first-child {

  background:
    rgba(255, 255, 255, 0.015);
}


/* =========================================================
   SECOND COLUMN
   ========================================================= */

.explore-menu .dropdown-group:last-child {

  background:
    rgba(255, 255, 255, 0.025);
}


/* =========================================================
   SUBTLE TOP ACCENT
   ========================================================= */

.explore-menu::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 3px;

  background:
    var(--red);

  z-index: 2;
}


/* =========================================================
   ACTIVE EXPLORE
   ========================================================= */

.nav-dropdown > .dropdown-title.active {

  color:
    var(--red);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.dropdown-menu a:focus-visible {

  outline:
    2px solid var(--red);

  outline-offset:
    -2px;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

  .explore-menu {

    right: 0;

    width:
      min(680px, calc(100vw - 25px));

    min-width:
      0;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .dropdown-menu {

    position: static;

    width: 100%;

    min-width: 0;

    margin-top: 6px;

    padding: 6px;

    border-radius: 9px;

    box-shadow:
      none;

    transform:
      none;
  }

  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu {

    transform:
      none;
  }


  /* Two columns become one */

  .explore-menu {

    display:
      block;

    width:
      100%;

    min-width:
      0;

    padding:
      0;

    overflow:
      visible;
  }

  .dropdown-group {

    padding:
      18px 14px;
  }

  .dropdown-group + .dropdown-group {

    border-left:
      none;

    border-top:
      1px solid #333;
  }

  .dropdown-heading {

    font-size:
      12px;
  }

  .explore-menu .dropdown-group a {

    min-height:
      43px;
  }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .dropdown-group {

    padding:
      15px 10px;
  }

  .dropdown-menu a {

    font-size:
      13px;
  }

  .explore-menu .dropdown-group a {

    font-size:
      13px;

    min-height:
      40px;
  }

}


/* =========================
PROFILE PHOTO
========================= */

.profile-photo {

width: 190px;

height: 190px;

margin-bottom: 30px;

border-radius: 50%;

overflow: hidden;

border: 4px solid var(--red);

box-shadow:

0 0 0 8px rgba(220, 38, 38, 0.08),

0 0 35px rgba(220, 38, 38, 0.35);

animation: profileZoom 4s ease-in-out infinite;

position: relative;

}


/* PROFILE IMAGE */

.profile-photo img {

width: 100%;

height: 100%;

object-fit: cover;

display: block;

border-radius: 50%;

transition: transform 0.5s ease;

}


/* =========================
ZOOM IN / OUT ANIMATION
========================= */

@keyframes profileZoom {

0% {

transform: scale(1);

}

50% {

transform: scale(1.06);

}

100% {

transform: scale(1);

}

}


/* =========================
PHOTO HOVER
========================= */

.profile-photo:hover img {

transform: scale(1.08);

}


/* =========================
HERO CONTENT
========================= */

.about-hero-content {

max-width: 850px;

}

.about-hero-content h1 {

margin-bottom: 20px;

}

.about-hero-content p {

max-width: 750px;

margin: 0 auto;

}


/* =========================
MOBILE
========================= */

@media (max-width: 600px) {

.about-hero {

min-height: 500px;

padding: 60px 18px;

}

.profile-photo {

width: 150px;

height: 150px;

margin-bottom: 25px;

}

}


/* =========================================
   BINARY CONVERTER
   ========================================= */

.binary-converter {

    max-width: 900px;

    margin: 40px auto;

    padding: 35px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

    border: 1px solid #e5e5e5;

}

.binary-converter h2 {

    text-align: center;

    margin-bottom: 10px;

    color: #000000;

}

.binary-converter p {

    text-align: center;

    color: #555555;

    margin-bottom: 30px;

}


/* Conversion Type */

.converter-group {

    margin-bottom: 22px;

}

.converter-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #000000;

}

.converter-group select,

.converter-group textarea {

    width: 100%;

    padding: 14px;

    border: 1px solid #cccccc;

    border-radius: 6px;

    font-size: 16px;

    font-family: inherit;

    box-sizing: border-box;

    transition: 0.3s ease;

}

.converter-group select {

    background: #ffffff;

    cursor: pointer;

}

.converter-group textarea {

    min-height: 150px;

    resize: vertical;

}


/* Input Focus */

.converter-group select:focus,

.converter-group textarea:focus {

    outline: none;

    border-color: #dc2626;

    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);

}


/* Buttons */

.converter-buttons {

    display: flex;

    gap: 12px;

    margin-top: 20px;

    margin-bottom: 25px;

}

.converter-buttons button {

    flex: 1;

    padding: 13px 20px;

    border: none;

    border-radius: 6px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;

}


/* Convert Button */

.convert-btn {

    background: #dc2626;

    color: #ffffff;

}

.convert-btn:hover {

    background: #b91c1c;

    transform: translateY(-2px);

}


/* Clear Button */

.clear-btn {

    background: #000000;

    color: #ffffff;

}

.clear-btn:hover {

    background: #333333;

    transform: translateY(-2px);

}


/* Result Area */

.converter-result {

    margin-top: 25px;

}

.converter-result label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #000000;

}

.result-box {

    min-height: 120px;

    padding: 18px;

    background: #f7f7f7;

    border: 1px solid #dddddd;

    border-left: 4px solid #dc2626;

    border-radius: 6px;

    font-family: "Courier New", monospace;

    font-size: 16px;

    line-height: 1.7;

    word-break: break-word;

    white-space: pre-wrap;

    box-sizing: border-box;

    color: #000000;

}


/* Copy Button */

.copy-btn {

    width: 100%;

    margin-top: 12px;

    padding: 12px;

    background: #ffffff;

    color: #000000;

    border: 1px solid #000000;

    border-radius: 6px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;

}

.copy-btn:hover {

    background: #000000;

    color: #ffffff;

}


/* Error Message */

.error-message {

    color: #dc2626;

    font-weight: 600;

}


/* Converter Information Cards */

.converter-info {

    max-width: 900px;

    margin: 40px auto;

}

.converter-info .service-card {

    text-align: left;

}

.converter-info .service-card h3 {

    color: #dc2626;

    margin-bottom: 10px;

}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {

    .binary-converter {

        margin: 25px 15px;

        padding: 25px 20px;

    }

    .converter-buttons {

        flex-direction: column;

    }

    .converter-buttons button {

        width: 100%;

    }

    .converter-group textarea {

        min-height: 130px;

    }

}

@media (max-width: 480px) {

    .binary-converter {

        margin: 20px 10px;

        padding: 20px 15px;

    }

    .binary-converter h2 {

        font-size: 24px;

    }

    .converter-group select,

    .converter-group textarea {

        font-size: 15px;

        padding: 12px;

    }

    .result-box {

        font-size: 14px;

        padding: 14px;

    }

}


/* ==========================================================
   BRIOCOM SOLUTIONS
   CALCULATOR TOOL
   Black • White • Red
   ========================================================== */


/* =========================
   CALCULATOR HERO
   ========================= */

.calculator-hero {

    min-height: 45vh;

}


/* =========================
   CALCULATOR WRAPPER
   ========================= */

.calculator-wrapper {

    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 30px;

    align-items: start;

}


/* =========================
   CALCULATOR CARD
   ========================= */

.calculator-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 25px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.45);

    transition: 0.4s ease;

}

.calculator-card:hover {

    border-color: var(--red);

    box-shadow: 0 20px 60px rgba(220,38,38,0.15);

}


/* =========================
   DISPLAY
   ========================= */

.calculator-display {

    background: #050505;

    border: 1px solid #252525;

    border-radius: 15px;

    padding: 20px;

    margin-bottom: 20px;

    min-height: 120px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    text-align: right;

    overflow: hidden;

}

.calculator-expression {

    color: var(--gray);

    font-size: 17px;

    min-height: 28px;

    overflow-wrap: anywhere;

}

.calculator-result {

    color: var(--white);

    font-size: 42px;

    font-weight: 700;

    line-height: 1.2;

    overflow-wrap: anywhere;

}


/* =========================
   BUTTON GRID
   ========================= */

.calculator-buttons {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

}


/* =========================
   CALCULATOR BUTTON
   ========================= */

.calc-btn {

    height: 70px;

    border: 1px solid #252525;

    background: #181818;

    color: var(--white);

    border-radius: 14px;

    font-size: 22px;

    font-weight: 600;

    cursor: pointer;

    transition:

        transform 0.2s ease,

        background 0.2s ease,

        border-color 0.2s ease,

        box-shadow 0.2s ease;

}

.calc-btn:hover {

    transform: translateY(-3px);

    background: #222222;

    border-color: var(--red);

    box-shadow:

        0 8px 20px rgba(220,38,38,0.18);

}

.calc-btn:active {

    transform: scale(0.96);

}


/* =========================
   FUNCTION BUTTONS
   ========================= */

.function-btn {

    background: #252525;

}

.function-btn:hover {

    background: #303030;

}


/* =========================
   OPERATORS
   ========================= */

.operator-btn {

    background: var(--red);

    border-color: var(--red);

}

.operator-btn:hover {

    background: #ef4444;

    border-color: #ef4444;

}


/* =========================
   EQUALS
   ========================= */

.equals-btn {

    background: var(--white);

    color: var(--black);

    border-color: var(--white);

}

.equals-btn:hover {

    background: #e5e5e5;

    color: var(--black);

    border-color: var(--white);

    box-shadow:

        0 8px 20px rgba(255,255,255,0.12);

}


/* =========================
   COPY BUTTON
   ========================= */

.calculator-copy {

    width: 100%;

    margin-top: 18px;

    background: transparent;

    color: var(--white);

    border: 1px solid #444;

    border-radius: 12px;

    padding: 13px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;

}

.calculator-copy:hover {

    background: var(--white);

    color: var(--black);

    border-color: var(--white);

    transform: none;

    box-shadow: none;

}


/* =========================
   HISTORY CARD
   ========================= */

.calculator-history-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 25px;

    min-height: 300px;

    box-shadow:

        0 20px 50px rgba(0,0,0,0.35);

}

.history-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);

}

.history-header h2 {

    font-size: 22px;

    margin: 0;

}

.history-header h2::after {

    display: none;

}

.history-header button {

    padding: 8px 14px;

    background: transparent;

    border: 1px solid #444;

    color: var(--white);

    border-radius: 8px;

    font-size: 13px;

}

.history-header button:hover {

    background: var(--red);

    border-color: var(--red);

    transform: none;

    box-shadow: none;

}


/* =========================
   HISTORY ITEMS
   ========================= */

.calculator-history {

    margin-top: 15px;

    max-height: 420px;

    overflow-y: auto;

}

.history-item {

    padding: 15px;

    margin-bottom: 10px;

    background: #0b0b0b;

    border: 1px solid #222;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.3s ease;

}

.history-item:hover {

    border-color: var(--red);

    transform: translateX(4px);

}

.history-expression {

    color: var(--gray);

    font-size: 14px;

    margin-bottom: 5px;

}

.history-answer {

    color: var(--white);

    font-size: 20px;

    font-weight: 700;

}

.empty-history {

    color: #777;

    text-align: center;

    padding: 40px 10px;

}


/* =========================
   INFO SECTION
   ========================= */

.calculator-info {

    padding-top: 60px;

}

.calculator-info .card {

    text-align: center;

}

.calculator-info .card h3 {

    color: var(--white);

    transition: 0.3s ease;

}

.calculator-info .card:hover h3 {

    color: var(--red);

}


/* =========================
   SCROLLBAR
   ========================= */

.calculator-history::-webkit-scrollbar {

    width: 6px;

}

.calculator-history::-webkit-scrollbar-track {

    background: #080808;

}

.calculator-history::-webkit-scrollbar-thumb {

    background: #e3d2d2;

    border-radius: 10px;

}

.calculator-history::-webkit-scrollbar-thumb:hover {

    background: var(--red);

}


/* =========================
   TABLETS
   ========================= */

@media (max-width: 900px) {

    .calculator-wrapper {

        grid-template-columns: 1fr;

        max-width: 650px;

    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .calculator-card,

    .calculator-history-card {

        padding: 18px;

        border-radius: 16px;

    }

    .calculator-buttons {

        gap: 8px;

    }

    .calc-btn {

        height: 62px;

        font-size: 19px;

        border-radius: 11px;

    }

    .calculator-display {

        min-height: 105px;

        padding: 15px;

    }

    .calculator-result {

        font-size: 34px;

    }

    .calculator-expression {

        font-size: 15px;

    }

}


/* =========================
   SMALL PHONES
   ========================= */

@media (max-width: 400px) {

    .calculator-buttons {

        gap: 6px;

    }

    .calc-btn {

        height: 55px;

        font-size: 17px;

        border-radius: 9px;

    }

    .calculator-result {

        font-size: 29px;

    }

    .calculator-card {

        padding: 14px;

    }

}


/* =========================
   TOUCH DEVICES
   ========================= */

@media (hover: none) and (pointer: coarse) {

    .calc-btn:hover {

        transform: none;

        box-shadow: none;

    }

    .history-item:hover {

        transform: none;

    }

}
