/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-light);
  max-width: 600px;
  margin: auto;
}

button {
  border: none;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Cards */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

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

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-light);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 42px;
  height: 42px;

  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {

  .navbar {
    position: relative;
    flex-direction: row;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ===== Call Page ===== */

.call-layout{
max-width:1200px;
margin:auto;
padding:2rem;
}

.call-header{
margin-bottom:1.5rem;
}

.call-status{
margin-top:.5rem;
color:var(--text-light);
}

.chat-card{
margin-bottom:1.5rem;
}

.chat-messages{
height:320px;
overflow:auto;
border:1px solid var(--border);
border-radius:12px;
padding:1rem;
background:rgba(255,255,255,.4);
}

.chat-message{
margin-bottom:.75rem;
}

.chat-input-row{
display:flex;
gap:.75rem;
margin-top:1rem;
}

.chat-input-row input{
flex:1;
padding:.9rem 1rem;
border:1px solid var(--border);
border-radius:999px;
font-family:inherit;
font-size:1rem;
outline:none;
}

.call-controls{
display:flex;
flex-wrap:wrap;
gap:.75rem;
margin-top:1rem;
}

.call-controls button{
padding:.9rem 1.4rem;
border-radius:999px;
background:var(--primary);
color:white;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.call-controls button:hover{
background:var(--primary-dark);
transform:translateY(-2px);
}

.video-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(320px,1fr));
gap:1.5rem;
}

.video-card{
background:rgba(255,255,255,.7);
backdrop-filter:blur(10px);
border:1px solid rgba(255,255,255,.4);
border-radius:var(--radius);
padding:1rem;
box-shadow:var(--shadow);
}

.video-card h3{
margin-bottom:.75rem;
}

.video-card video{
width:100%;
min-height:240px;
background:black;
border-radius:12px;
}

@media (max-width:768px){

.call-layout{
padding:1rem;
}

.chat-input-row{
flex-direction:column;
}

.call-controls{
flex-direction:column;
}

.call-controls button{
width:100%;
}
}

/* =========================
Call Page
========================= */

.call-layout{
max-width:1200px;
margin:auto;
padding:2rem;
}

.call-header{
margin-bottom:1.5rem;
}

.call-header h1{
margin-bottom:.5rem;
}

.call-status{
color:var(--text-light);
}

.room-card{
margin-bottom:1.5rem;
}

.room-actions{
display:flex;
gap:.75rem;
flex-wrap:wrap;
margin-top:1rem;
}

.room-actions button{
border:none;
padding:.9rem 1.4rem;
border-radius:999px;
background:var(--primary);
color:#fff;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.room-actions button:hover{
background:var(--primary-dark);
transform:translateY(-2px);
}

.chat-card{
margin-bottom:1.5rem;
}

.chat-messages{
height:320px;
overflow-y:auto;

margin-top:1rem;

padding:1rem;

border:1px solid var(--border);
border-radius:12px;

background:
rgba(255,255,255,.45);
}

.chat-message{
padding:.5rem 0;
border-bottom:1px solid
rgba(0,0,0,.05);

word-break:break-word;
}

.chat-message:last-child{
border-bottom:none;
}

.chat-input-row{
display:flex;
gap:.75rem;
margin-top:1rem;
}

.chat-input-row input{
flex:1;

padding:.9rem 1rem;

border:1px solid
var(--border);

border-radius:999px;

font-size:1rem;
font-family:inherit;

outline:none;
}

.chat-input-row input:focus{
border-color:
var(--primary);
}

.call-controls{
display:flex;
flex-wrap:wrap;
gap:.75rem;
margin-top:1rem;
}

.call-controls button{
border:none;

padding:.9rem 1.4rem;

border-radius:999px;

background:
var(--primary);

color:white;

font-weight:600;

cursor:pointer;

transition:.3s;
}

.call-controls button:hover{
background:
var(--primary-dark);

transform:
translateY(-2px);
}

.video-grid{
display:grid;

grid-template-columns:
repeat(
auto-fit,
minmax(320px,1fr)
);

gap:1.5rem;
}

.video-card{
background:
rgba(255,255,255,.7);

backdrop-filter:
blur(10px);

border:
1px solid
rgba(255,255,255,.4);

border-radius:
var(--radius);

padding:1rem;

box-shadow:
var(--shadow);
}

.video-card h3{
margin-bottom:.75rem;
}

.video-card video{
width:100%;

min-height:240px;

border-radius:12px;

background:#000;
}

@media (max-width:768px){

.call-layout{
padding:1rem;
}

.chat-input-row{
flex-direction:column;
}

.chat-input-row .btn{
width:100%;
text-align:center;
}

.room-actions{
flex-direction:column;
}

.call-controls{
flex-direction:column;
}

.room-actions button,
.call-controls button{
width:100%;
}

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