@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* -------------------------
   GLOBAL
-------------------------- */

/* -----------------------
   PREMIUM DARK INPUT STYLE
------------------------ */

input,
textarea,
select {
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;

  padding: 14px 16px;
  border-radius: 12px;

  font-size: 15px;
  font-family: 'Inter', sans-serif;

  transition: all 0.2s ease;
  outline: none;
}

/* Placeholder color */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Focus state */
input:focus,
textarea:focus,
select:focus {
  border: 1px solid rgba(100, 160, 255, 0.6);
  background: rgba(25, 25, 25, 0.95);
  box-shadow: 0 0 0 3px rgba(100, 160, 255, 0.15);
}

/* Textarea spacing */
textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form rows spacing */
.contact-form .row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

/* Make them stack on mobile */
@media (max-width: 768px) {
  .contact-form .row {
    flex-direction: column;
  }
}

/* ---- Mobile input zoom fix (iOS Safari + others) ---- */
/* iOS auto-zooms when font-size < 16px on inputs */
input, textarea, select, button {
  font-size: 16px;
}

/* Keep desktop looking the same (optional) */
@media (min-width: 901px){
  input, textarea, select, button {
    font-size: 14px; /* your normal desktop size */
  }
}

/* Better mobile spacing + tap targets */
@media (max-width: 900px){
  .search-box input{
    font-size: 16px;         /* MUST be 16px to stop zoom */
    padding: 12px 95px 12px 16px;
  }

  .search-box button{
    padding: 0 14px;
  }

  .chat-input input{
    font-size: 16px;         /* stop zoom */
  }

  .contact-form input,
  .contact-form textarea{
    font-size: 16px;         /* stop zoom */
  }

  .contact-form textarea{
    min-height: 140px;
  }
}



* {
  box-sizing: border-box;
}

body {
  background: #0f0f0f;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Titles + logo in IT font */
h1, h2, h3, .logo a {
  font-family: 'JetBrains Mono', monospace;
}

/* Global link reset (no purple, no underline) */
a, a:visited, a:hover, a:active {
  color: #cfcfcf;
  text-decoration: none;
}
a:hover {
  color: #ffffff;
}

/* -------------------------
   HEADER / NAV
-------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo a {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

nav a {
  margin-left: 25px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}
nav a:hover {
  opacity: 1;
}

/* -------------------------
   HOME PAGE
-------------------------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.hero-inner {
  max-width: 820px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  text-shadow: 0 0 22px rgba(255,255,255,0.07);
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 22px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s ease;
}
.btn:hover {
  background: #222;
}

.home-description {
  padding: 120px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.home-container {
  max-width: 820px;
}

.home-container h2 {
  font-size: 28px;
  margin: 0 0 18px 0;
}

.home-container p {
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  font-size: 16px;
  margin: 0;
}

/* -------------------------
   PROJECTS GRID
-------------------------- */
.video-grid {
  padding: 40px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.video-card {
  background: rgba(24,24,24,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px;
  border-radius: 14px;
  transition: 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.video-card h3 {
  margin: 12px 0 6px 0;
  font-size: 16px;
  font-weight: 600;
}

.video-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* -------------------------
   VIDEO DETAIL PAGE
-------------------------- */
.video-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 40px 80px;
}

.video-left video {
  width: 100%;
  border-radius: 16px;
  background: #000;
}

.video-title {
  font-size: 28px;
  margin: 0 0 18px 0;
}

.video-meta {
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  display: flex;
  gap: 8px;
}

.video-description {
  margin-top: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  font-size: 15px;
}

.video-right {
  padding-top: 52px;
}

.video-right h3 {
  margin: 0 0 14px 0;
}

.related-item {
  display: block;
  padding: 10px 0;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.related-item:hover {
  color: white;
}

/* -------------------------
   ASK PAGE (CONTACT + CHAT)
-------------------------- */
.ask-page {
  padding: 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-card, .chat-card {
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
}

.contact-card h2 {
  margin: 0 0 6px 0;
  font-size: 28px;
}

.muted {
  margin: 0 0 18px 0;
  color: rgba(255,255,255,0.65);
}

.contact-info .label {
  color: rgba(255,255,255,0.65);
}

/* Contact form sizing (prevents drag/stretch look) */
.contact-form {
  max-width: 650px;
}

.contact-form .row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.contact-form input {
  flex: 1;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.btn-primary {
  width: 100%;
  background: #0f7a3f;
  border: none;
  padding: 14px 16px;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
}

/* Chat */
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.chat-name { font-weight: 700; }
.chat-sub { color: rgba(255,255,255,0.65); font-size: 12px; }

.chat-box {
  height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.35;
  font-size: 14px;
}

.bubble.bot {
  background: rgba(255,255,255,0.08);
  align-self: flex-start;
}

.bubble.user {
  background: rgba(50,120,255,0.22);
  align-self: flex-end;
}

.chat-input {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
html, body { 
    height: 100%;
    overflow-x: hidden;
 }
.chat-input input {
  flex: 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.chat-input button {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}

.chat-input button:hover {
  background: rgba(255,255,255,0.18);
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 1000px) {
  header {
    padding: 16px 20px;
  }

  .hero {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .home-description {
    padding: 80px 24px;
  }

  .video-grid {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .video-page {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .ask-page {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .chat-box {
    height: 360px;
  }

  .contact-form .row {
    flex-direction: column;
  }
}
.main-title{
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: 'JetBrains Mono', monospace;
}

.home-description{
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.home-container{
    max-width: 800px;
}

.home-container p{
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
}
.video-page{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 40px 80px;
}

.video-left video{
    width: 100%;
    border-radius: 14px;
    margin-top: 15px;
}

.video-title{
    font-size: 28px;
    margin-bottom: 10px;
}

.video-meta{
    margin-top: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.video-description{
    margin-top: 20px;
    line-height: 1.6;
    max-width: 850px;
}

.video-right h3{
    margin-bottom: 20px;
}

.related-card{
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    text-decoration: none;
    color: white;
}

.related-card video{
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.related-title{
    font-size: 14px;
    font-weight: 600;
}

.related-meta{
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* -------------------------
   YOUTUBE STYLE VIDEO PAGE
-------------------------- */
.yt-page{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding: 34px 80px;
  align-items: start;
}

.yt-main{
  min-width: 0;
}
main{ flex: 1; }
.yt-title{
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  margin: 0 0 14px 0;
}

.yt-player video{
  width: 100%;
  border-radius: 14px;
  background: #000;
}

.yt-meta{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.yt-desc{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Right sidebar */
.yt-side{
  position: sticky;
  top: 90px;
  height: fit-content;
}

.yt-side-title{
  margin: 0 0 14px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-family: 'JetBrains Mono', monospace;
}

/* Suggestion item */
.yt-suggest{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(20,20,20,0.75);
  margin-bottom: 12px;
  transition: 0.15s ease;
}

.yt-suggest:hover{
  background: rgba(30,30,30,0.9);
  transform: translateY(-2px);
}

.yt-thumb video{
  width: 160px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
}

.yt-suggest-title{
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.95);
}

.yt-suggest-meta{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.yt-suggest-desc{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1100px){
  .yt-page{
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .yt-side{
    position: static;
  }
  .yt-suggest{
    grid-template-columns: 140px 1fr;
  }
  .yt-thumb video{
    width: 140px;
    height: 78px;
  }
}
/* Footer */
.site-footer{
    text-align: center;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #0f0f0f;
}

.footer-inner{
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
}

/* Mobile Safe */
@media (max-width: 768px){
    .site-footer{
        padding: 18px 0;
    }

    .footer-inner{
        font-size: 12px;
    }
}
.search-wrap{
  display: flex;
  justify-content: center;   /* centers horizontally */
  padding: 30px 0;
}

.search-box{
  position: relative;
  width: 100%;
  max-width: 700px; 
}

.search-box input{
  width: 100%;
  background: #111;
  border: 1px solid rgba(255,255,255,0.10);
  color: white;
  border-radius: 12px;
  padding: 12px 110px 12px 14px;
  outline: none;
}

.search-box button{
  position: absolute;
  right: 8px;
  top: 7px;
  bottom: 7px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  cursor: pointer;
}

.search-box button:hover{
  background: rgba(255,255,255,0.18);
}

.suggest-box{
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: rgba(20,20,20,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  z-index: 50;
}

.suggest-item{
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}

.suggest-item:hover{
  background: rgba(255,255,255,0.08);
}

/* mobile */
@media (max-width: 1000px){
  .search-wrap{ padding: 16px 24px 0 24px; }
}
