:root{
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: #6b6b6b;
  --accent: #000000;
  --card-radius: 12px;
  --container-max: 1500px;
  --container-pad: 22px;
  --gap: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* Reset and horizontal overflow protection */
*{ box-sizing: border-box; }
html,body{
  height:100%;
  margin:0;           /* was 10px, removed to prevent overflow */
  padding:0;
  background:var(--bg);
  color:var(--fg);
  -webkit-font-smoothing:antialiased;
  line-height:1.4;
  overflow-x: hidden;
}
a{ color:inherit; text-decoration:none; }

/* Container */
.container{
  width:100%;
  max-width:var(--container-max);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--container-pad);
  padding-right:var(--container-pad);
}

/* Header */
header.site-header{
  width:100%;
  background:rgba(255,255,255,0.98);
  position:sticky;
  top:0;
  z-index:120;
  border-bottom:1px solid rgba(0,0,0,0.04);
  backdrop-filter: blur(6px);
}
.header-row{
  display:flex;
  align-items:center;
  gap:0px;
  padding:14px 0;
}
.logo{
  display:flex;
  align-items:center;
  gap:0px;
  text-decoration:none;
  color:var(--fg);
}
.logo-img{
  width:40px;
  height:40px;
  object-fit:contain;
  border-radius:6px;
}
.logo-img1{
  width:50px;
  height:50px;
  object-fit:contain;
  border-radius:10px;
}
.brand{
  font-weight:700;
  font-size:18px;
}
.brand1{
  font-weight:700;
  font-size:20px;
}
.main-nav{
  flex:1;
  display:flex;
  justify-content: flex-end;
  margin-right: 20px;
}

/* Clean Navbar */
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 4px;
  transition: color 0.2s ease, transform 0.15s ease;
}

nav.main-nav a:hover {
  color: #000;
  transform: translateY(-2px);
}

.auth{ display:flex; gap:10px; align-items:center; }

/* Buttons */
.btn1{
  border-radius:10px;
  padding:8px 14px;
  font-weight:700;
  cursor:pointer;
  border:1px solid rgba(0,0,0,0.08);
  background:transparent;
  color:var(--fg);
}
.btn1.primary{
  background:var(--accent);
  color:#fff;
  border-color:rgba(0,0,0,0.08);
}
.btn.white{
  background:#fff;
  color:var(--fg);
  border-color:rgba(0,0,0,0.12);
}

/* Mobile menu icon */
.mobile-menu-btn{
  display: none;
  width: 44px;
  height: 36px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;

  /* no fixed offset – let flexbox push it to the right */
  left: 0;
  margin-left: auto;
}

.mobile-menu-btn span,
.mobile-menu-btn::before,
.mobile-menu-btn::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  height:2px;
  background:var(--fg);
  border-radius:2px;
}
.mobile-menu-btn::before{ top:11px; }
.mobile-menu-btn span{ top:18px; }
.mobile-menu-btn::after{ bottom:11px; }

/* Sidebar */
.mobile-sidebar{
  position:fixed;
  top:0;
  right:0;
  width:460px;
  max-width:99%;
  height:50%;
  background: linear-gradient(
    180deg,
    rgba(216, 211, 211, 0.08) 0%,
    rgba(240, 239, 239, 0.04) 100%
  );
  border: 3px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  margin-top:  3px;
  border-bottom-left-radius: 40px;
  border-top-left-radius: 40px;
  box-shadow:-12px 0 30px rgba(0,0,0,0.12);
  transform:translateX(110%);
  transition:transform 220ms cubic-bezier(.2,.9,.2,1);
  z-index:1005;
  overflow:hidden;
}
.mobile-sidebar.open{ transform:translateX(0); }
.sb-inner{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  padding:18px;
  gap:18px;
  overflow:hidden;
}
.sb-close{
  position:absolute;
  top:12px;
  right:12px;
  border:0;
  background:transparent;
  font-size:20px;
  cursor:pointer;
}
.sb-logo{
  display:flex;
  gap:12px;
  align-items:center;
  padding-top:8px;
}
.sb-nav-wrap{
  flex:1;
  overflow-y:auto;
  margin-bottom: 12px;
}
.sb-nav{
  list-style:none;
  padding:28px 0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:center;
}
.sb-nav a{
  width:240px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:700;
  color:var(--fg);
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}

.mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:1000;
  opacity:0;
  transition:opacity 220ms ease;
  pointer-events:none;
}
.mobile-overlay.show{
  opacity:1;
  pointer-events:auto;
}

/* Main */
.page-main{
  flex:1;
}
.contact-section{
  padding-top:36px;
  padding-bottom:48px;
}

/* Big card layout */
.big-card{
  background:transparent;
  border-radius:var(--card-radius);
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  align-items:start;
}

/* Card base */
.card{
  border-radius:var(--card-radius);
  background:#ffffff;
  padding:22px;
  box-shadow:0 12px 30px rgba(10,10,10,0.04);
  border:1px solid rgba(0,0,0,0.05);
  min-height:420px;
  display:flex;
  flex-direction:column;
}
.card-form{
  background:#ffffff;
  color:var(--fg);
}
.card-form .card-title{
  margin:0 0 6px 0;
  font-size:35px;
  font-weight:900;
}
.card-form .card-sub{
  margin:0 0 18px 0;
  color:var(--muted);
  max-width:60ch;
}

/* Contact form */
.contact-form{
  display:grid;
  gap:10px;
  margin-top:8px;
}
.contact-form label{
  font-weight:700;
  font-size:13px;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  font-size:14px;
  outline:none;
  background:#fff;
  color:var(--fg);
}
.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.form-actions{
  margin-top:8px;
  display:flex;
  gap:10px;
  align-items:center;
}

/* Right dark card */
.card-info.dark{
  background:#0b0b0b;
  color:#ffffff;
  border:0;
  min-height:420px;
  display:flex;
  flex-direction:column;
}

/* technologies grid */
.tech-grid{
  width:100%;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  margin-bottom:16px;
  padding:8px;
  background: rgba(255,255,255,0.02);
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
}
.tech-item{
  width:100%;
  padding:10px;
  text-align:center;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  color:#ffffff;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.04);
  transition:0.18s ease;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  min-height:64px;
}
.tech-item:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
}

.info-title{
  margin:14px 0 10px 0;
  font-size:20px;
  font-weight:800;
  color:#fff;
}
.meta{
  display:grid;
  gap:10px;
  margin-top:6px;
}
.meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.meta-row .label{
  color:rgba(255,255,255,0.8);
  font-size:13px;
}
.meta-row .value{
  text-align:right;
  color:#ffffff;
  font-weight:700;
}
.link-like{
  background:transparent;
  border:0;
  color:#ffffff;
  font-weight:700;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
}
.plain-link{
  color:#ffffff;
  text-decoration:underline;
  font-weight:700;
}
.privacy-note{
  font-size:13px;
  color: rgba(255,255,255,0.75);
  margin-top:auto;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  background:rgba(0,0,0,0.9);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  font-weight:700;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  z-index:9999;
}

/* Footer */
footer{
  padding:26px 6vw;
  border-top:1px solid rgba(10,10,10,0.08);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.contact{
  display:flex;
  gap:20px;
}
.contact-value{
  font-weight:700;
}

/* Tablet breakpoint: hide main-nav & use burger below 768px */
@media (max-width: 1000px){
  .big-card{
    grid-template-columns: 1fr;
  }
  .two-col{
    grid-template-columns: 1fr;
  }
  .mobile-menu-btn{
    display:block;
  }
  .main-nav{
    display:none;
  }
  .auth{
    display:none;
  }
  .card{
    min-height:auto;
  }
  .tech-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-value{
    font-weight:400;
    font-size: 12px;
  }
}

/* Small phone adjustments */
@media (max-width:520px){
  .container{
    padding-left:14px;
    padding-right:14px;
  }
  .logo-img1{
    width:35px;
    height:35px;
  }
  .brand{
    font-size:15px;
  }
  .card{
    padding:16px;
    min-height:auto;
  }
  .tech-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Floating Side Contact Bar ========== */
#sideContactBar {
    position: fixed;
    top: 40%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

/* Each button */
.side-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.18);

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Hover effect */
.side-item:hover {
    transform: translateX(6px) scale(1.08);
    background: rgba(255, 255, 255, 0.28);
}

/* Icon sizes */
.side-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.4));
}

/* Mobile Responsive (Icons move slightly down) */
@media (max-width: 600px) {
    #sideContactBar {
        top: 200px;
        bottom: auto;
        left: 2px;
        flex-direction: column;
        gap: 10px;
    }

    .side-item {
        width: 28px;
        height: 28px;
    }

    .side-item img {
        width: 22px;
        height: 22px;
    }
}

/* Fix side contact bar on very small phones (iPhone SE / XR, etc.)  */
@media (max-width: 400px) {
  #sideContactBar {
    left: 6px;
    gap: 6px;
  }

  #sideContactBar .side-item {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 12px;
  }

  #sideContactBar .side-item img {
    width: 20px;
    height: 20px;
  }
}

/* Hide contact bar when JS adds .hide */
#sideContactBar.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
