@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Orbitron:wght@700;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #080808;
  --surface:  #101010;
  --card:     #141414;
  --border:   #222;
  --red:      #c0392b;
  --red-glow: rgba(192,57,43,0.35);
  --red-dim:  rgba(192,57,43,0.12);
  --silver:   #c8c8c8;
  --white:    #f0f0f0;
  --muted:    #666;
  --font-display: 'Orbitron', sans-serif;
  --font-title:   'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 0;
}

nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none;
}
.nav-brand img { height: 44px; width: 44px; object-fit: contain; }
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--silver);
  line-height: 1.3;
}
.nav-brand-text span { color: var(--red); display: block; font-size: 0.6rem; letter-spacing: 3px; }

.nav-links { list-style: none; display: flex; gap: 0.25rem; }
.nav-links a {
  font-family: var(--font-title);
  font-size: 1rem; font-weight: 600; letter-spacing: 1px;
  color: var(--muted); text-decoration: none;
  padding: 0.5rem 1.1rem; border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--border); }
.nav-links a.active { color: var(--red); }

.nav-cta {
  font-family: var(--font-title); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--red); color: var(--white);
  border: none; padding: 0.6rem 1.4rem; border-radius: 4px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: #e74c3c; box-shadow: 0 0 20px var(--red-glow); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--silver); border-radius: 2px; transition: 0.3s; }

.hero {
  position: relative; z-index: 1;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(192,57,43,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(192,57,43,0.08) 0%, transparent 60%),
    var(--bg);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-logo {
  width: 160px; height: 160px;
  margin: 0 auto 2.5rem;
}
.hero-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 30px var(--red-glow));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); filter: drop-shadow(0 0 30px var(--red-glow)); }
  50%      { transform: translateY(-10px); filter: drop-shadow(0 0 50px rgba(192,57,43,0.6)); }
}

.hero-eyebrow {
  font-family: var(--font-title); font-size: 0.8rem;
  letter-spacing: 5px; text-transform: uppercase; color: var(--red);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 40px; height: 1px; background: var(--red); opacity: 0.5;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900; letter-spacing: 3px;
  line-height: 1.1; color: var(--white);
  margin-bottom: 0.4rem;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero-sub {
  font-family: var(--font-title); font-size: 1rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.8rem;
}

.hero-desc {
  font-size: 1.05rem; color: #999; line-height: 1.8;
  max-width: 540px; margin: 0 auto 3rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-title); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.85rem 2.2rem; border-radius: 4px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s; display: inline-block;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #e74c3c; box-shadow: 0 0 30px var(--red-glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--silver); border: 1px solid #333; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.divider {
  display: flex; align-items: center; gap: 1rem;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  color: var(--red); font-family: var(--font-title);
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.services { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 2px; color: var(--white); margin-bottom: 0.5rem;
}
.section-header h2 span { color: var(--red); }
.section-header p { color: var(--muted); font-size: 0.95rem; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { border-color: #333; transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 {
  font-family: var(--font-title); font-size: 1.2rem; font-weight: 700;
  letter-spacing: 1px; color: var(--white); margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.service-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

.page-hero {
  position: relative; z-index: 1;
  padding: 5rem 2rem 4rem;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(192,57,43,0.15) 0%, transparent 65%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 3px; color: var(--white); margin-bottom: 0.5rem;
}
.page-hero h1 span { color: var(--red); }
.page-hero p { color: var(--muted); letter-spacing: 2px; font-size: 0.85rem; text-transform: uppercase; }

.about-section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.founder-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 4rem;
  align-items: start; margin-bottom: 5rem;
}
.founder-visual {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.founder-img-wrap { width: 200px; height: 200px; position: relative; }
.founder-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 20px var(--red-glow));
}
.founder-ring {
  position: absolute; inset: -10px;
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.founder-ring::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 7px; height: 7px; background: var(--red);
  border-radius: 50%; transform: translateX(-50%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.founder-name {
  font-family: var(--font-display); font-size: 1rem;
  letter-spacing: 2px; color: var(--white); text-align: center;
}
.founder-title {
  font-family: var(--font-title); font-size: 0.8rem;
  letter-spacing: 3px; color: var(--red); text-transform: uppercase; text-align: center;
}
.founder-info h2 {
  font-family: var(--font-display); font-size: 1.4rem;
  letter-spacing: 2px; color: var(--white); margin-bottom: 1.5rem;
}
.founder-info h2 span { color: var(--red); }
.info-block { margin-bottom: 2rem; }
.info-block h3 {
  font-family: var(--font-title); font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--red);
  margin-bottom: 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.info-block p { color: #999; font-size: 0.92rem; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag {
  font-family: var(--font-title); font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 3px;
  background: var(--red-dim); border: 1px solid rgba(192,57,43,0.3);
  color: var(--red);
}
.edu-timeline { list-style: none; }
.edu-timeline li {
  padding: 0.8rem 0 0.8rem 1.5rem;
  border-left: 1px solid var(--border);
  position: relative; color: #999; font-size: 0.9rem; line-height: 1.6;
}
.edu-timeline li::before {
  content: ''; position: absolute; left: -4px; top: 1.1rem;
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
}
.edu-timeline li strong { color: var(--white); display: block; }

.contact-wrap { padding: 5rem 2rem; max-width: 900px; margin: 0 auto; }
.flash-box { margin-bottom: 1.5rem; }
.flash {
  padding: 1rem 1.5rem; border-radius: 4px; font-size: 0.9rem;
  font-family: var(--font-title); letter-spacing: 0.5px; font-weight: 600;
}
.flash.success { background: rgba(39,174,96,0.1); border: 1px solid #27ae60; color: #2ecc71; }
.flash.error { background: var(--red-dim); border: 1px solid var(--red); color: #e74c3c; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info h2 {
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: 2px; color: var(--white); margin-bottom: 1.5rem;
}
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 40px; height: 40px; background: var(--red-dim);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-text label {
  font-family: var(--font-title); font-size: 0.7rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 0.2rem;
}
.contact-item-text p { color: #999; font-size: 0.88rem; }
.contact-form-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2.5rem;
}
.contact-form-box h2 {
  font-family: var(--font-display); font-size: 1rem;
  letter-spacing: 2px; color: var(--white); margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  font-family: var(--font-title); font-size: 0.72rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.85rem 1rem; color: var(--white);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #333; }
.form-group textarea { resize: vertical; min-height: 130px; }
.submit-btn {
  width: 100%; padding: 1rem;
  font-family: var(--font-title); font-weight: 700;
  font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
  background: var(--red); color: var(--white);
  border: none; border-radius: 4px; cursor: pointer; transition: all 0.25s;
}
.submit-btn:hover { background: #e74c3c; box-shadow: 0 0 30px var(--red-glow); }

.chatbot-wrap { padding: 3rem 2rem; max-width: 900px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }
.chatbot-wrap h1 {
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: 2px; color: var(--white); margin-bottom: 0.4rem;
}
.chatbot-wrap h1 span { color: var(--red); }
.chatbot-wrap > p { color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; letter-spacing: 1px; }
.chat-window {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; display: flex; flex-direction: column; overflow: hidden;
  min-height: 520px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: var(--bg); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.msg { display: flex; gap: 0.8rem; align-items: flex-start; max-width: 80%; }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.msg.bot .msg-avatar { background: var(--red-dim); border: 1px solid rgba(192,57,43,0.3); }
.msg.user .msg-avatar { background: #1a1a1a; border: 1px solid var(--border); }
.msg-text {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.75rem 1rem;
  font-size: 0.9rem; color: var(--white); line-height: 1.6;
}
.msg.user .msg-text { background: var(--red-dim); border-color: rgba(192,57,43,0.3); }
.msg-text.typing span {
  display: inline-block; width: 6px; height: 6px;
  background: var(--muted); border-radius: 50%; margin: 0 2px;
  animation: bounce 1.2s infinite;
}
.msg-text.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-text.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}
.chat-input-area {
  border-top: 1px solid var(--border); padding: 1rem 1.5rem;
  display: flex; gap: 0.75rem; align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.75rem 1rem; color: var(--white);
  font-family: var(--font-body); font-size: 0.9rem; resize: none;
  outline: none; max-height: 120px; transition: border-color 0.2s; line-height: 1.5;
}
.chat-input-area textarea:focus { border-color: var(--red); }
.chat-input-area textarea::placeholder { color: #333; }
.send-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-title); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--red); color: var(--white);
  border: none; border-radius: 4px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.send-btn:hover { background: #e74c3c; box-shadow: 0 0 20px var(--red-glow); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-note {
  text-align: center; font-size: 0.78rem; color: #444;
  padding: 0.75rem; font-family: var(--font-title); letter-spacing: 1px;
  border-top: 1px solid var(--border);
}

footer {
  position: relative; z-index: 1;
  background: var(--surface); border-top: 1px solid var(--border); padding: 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { height: 32px; object-fit: contain; }
.footer-brand span {
  font-family: var(--font-display); font-size: 0.7rem;
  letter-spacing: 2px; color: var(--muted);
}
.footer-copy { font-size: 0.82rem; color: var(--muted); font-family: var(--font-title); letter-spacing: 1px; }
.footer-copy span { color: var(--red); }

@media (max-width: 900px) {
  .founder-card { grid-template-columns: 1fr; }
  .founder-visual { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(8,8,8,0.98); flex-direction: column; padding: 1rem;
    border-bottom: 1px solid var(--border); gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
