:root{
  --bg: #0F172A;
  --card: #1E293B;
  --muted: #94A3B8;
  --text: #F8FAFC;
  --accent: #6366F1;
  --accent-2: #4338CA;
  --glass: rgba(255,255,255,0.04);
  --scroll-behavior: smooth;
}

*{box-sizing:border-box;margin:0;padding:0;font-family:Inter,system-ui,Arial;}
html,body{height:100%;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;}
.container{max-width:1100px;margin:0 auto;padding:32px;}

/* Header */
.header{display:flex;align-items:center;justify-content:space-between;padding:16px 0;}
.brand{font-weight:700;letter-spacing:0.4px;font-size:18px;}
.nav{display:flex;gap:18px;align-items:center;}
.nav a{color:var(--muted);text-decoration:none;font-weight:600;}
.cta{background:linear-gradient(90deg,var(--accent),var(--accent-2));cursor: pointer;padding:10px 16px;border-radius:8px;color:white;text-decoration:none;font-weight:700;}

/* Hero */
.hero{display:grid;grid-template-columns:1fr 420px;gap:40px;align-items:center;padding:40px 0;}
.hero h1{font-size:36px;line-height:1.05;color:var(--text);margin-bottom:12px;}
.hero p{color:var(--muted);margin-bottom:20px;}
.hero .buttons{display:flex;gap:12px;}
.btn{padding:10px 16px;border-radius:8px;border:1px solid rgba(255,255,255,0.06);background:transparent;color:var(--text);text-decoration:none;font-weight:700;}
.card{background:var(--card);padding:18px;border-radius:12px;box-shadow:0 6px 18px rgba(2,6,23,0.6);}

.cta:hover {
  background: var(--accent-2);
  transition: background 0.3s ease;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transition: background 0.3s ease, border-color 0.3s ease;
}



.card:hover h3 {
  color: var(--accent);
}


/* Services */
.services{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px;}
.service{background:var(--glass);padding:20px;border-radius:10px;border:1px solid rgba(255,255,255,0.03);}
.service h3{margin-bottom:8px;color:var(--text);}
.service p{color:var(--muted);font-size:14px;}

.service.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.service.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.service.card:hover h3 {
  color: var(--accent);
}


/* Portfolio */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px;}
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 12px;
}

.thumb:hover img {
  transform: scale(1.08);
}

.thumb:hover .overlay {
  opacity: 1;
}

/* About & Contact */
.split{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:32px; align-items:stretch;}
.about p{color:var(--muted);line-height:1.6;}
.contact form{display:flex;flex-direction:column;gap:10px;flex: 1;}
.input{background:var(--card);border:1px solid rgba(255,255,255,0.03);padding:12px;border-radius:8px;color:var(--text);}

.split > .card {
  height: 100%;
}
.contact {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact input {
  flex: 0.2;
  resize: none;
}

.contact textarea {
  flex: 1;
  resize: none;
}

.contact form button {
  margin-top: auto;
}

/* Footer */
.footer{margin-top:48px;padding:20px;text-align:center;color:var(--muted);font-size:14px;}

/* Responsive */
@media (max-width:900px){
  .hero{grid-template-columns:1fr; padding-bottom:10px;}
  .services{grid-template-columns:1fr;}
  .grid{grid-template-columns:1fr 1fr;}
  .split{grid-template-columns:1fr;}
}
@media (max-width:520px){
  .grid{grid-template-columns:1fr;}
}

#chatbot {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 320px;
  max-height: 400px;
  background: var(--card);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 999;
  font-family: Inter, system-ui, Arial;
}

#chat-header {
  background: var(--accent);
  color: white;
  padding: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: var(--glass);
}

#chat-body div {
  margin-bottom: 8px;
}

#chat-input {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
}

#chat-input input {
  flex: 1;
  padding: 8px;
  border: none;
  background: var(--card);
  color: var(--text);
  border-radius: 0;
}

#chat-input button {
  padding: 8px 12px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

#chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
}

#chat-toggle:hover {
  background: var(--accent-2);
  transition:translate 0.3s ease;

}