:root {
  --red: #D32F2F;
  --red-dark: #b71c1c;
  --black: #111;
  --white: #fff;
  --gray: #f5f5f5;
  --gray2: #e0e0e0;
  --text: #222;
  --text-light: #666;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

.red { color: var(--red); }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray2);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0 1.5rem;
}
.nav-logo img { display: block; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-link {
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.4rem 0.75rem; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--gray); color: var(--red);
}
.hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text);
}

/* ===== CALL BUTTON ===== */
.btn-call, .nav-call {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--red); color: var(--white);
  border: none; border-radius: 8px;
  padding: 0.45rem 1rem; font-weight: 700;
  font-size: 0.85rem; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-call:hover { background: var(--red-dark); transform: scale(1.03); }
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4caf50; display: inline-block;
  animation: pulse 1.5s infinite;
}
.call-dot.offline { background: #aaa; animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== PAGES ===== */
.page {
  display: none; min-height: 100vh;
  padding-top: var(--nav-h);
}
.page.active { display: block; }

.section-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-light); font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.sub-heading {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 1.5rem; color: var(--text);
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #fff3f3; color: var(--red);
  border: 1px solid #ffcdd2;
  border-radius: 20px; padding: 0.3rem 1rem;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  color: var(--text-light); font-size: 1.1rem;
  line-height: 1.7; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.6rem; font-weight: 900; color: var(--red); }
.stat span:last-child { font-size: 0.8rem; color: var(--text-light); }
.hero-logo-img {
  width: 280px; max-width: 40vw;
  filter: drop-shadow(0 8px 32px rgba(211,47,47,0.15));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red); color: var(--white);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--text);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid var(--gray2); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ===== CARDS ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white); border: 1px solid var(--gray2);
  border-radius: var(--radius); padding: 2rem;
  cursor: pointer; transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: 0 8px 32px rgba(211,47,47,0.12); transform: translateY(-4px); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.card-price { font-weight: 700; color: var(--red); font-size: 1rem; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--black); color: var(--white);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; padding: 1.25rem 1.5rem;
  font-size: 0.9rem; font-weight: 600;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pricing-card {
  border: 1px solid var(--gray2); border-radius: var(--radius);
  padding: 2rem; position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.pricing-card:hover { box-shadow: 0 8px 32px rgba(211,47,47,0.12); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--red); border-width: 2px;
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  padding: 0.2rem 1rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.pricing-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.price {
  font-size: 2rem; font-weight: 900; color: var(--red);
  margin-bottom: 1rem;
}
.onwards { font-size: 1rem; font-weight: 400; }
.pricing-card ul {
  list-style: none; margin-bottom: 1.5rem;
}
.pricing-card ul li {
  padding: 0.3rem 0; font-size: 0.9rem; color: var(--text-light);
  border-bottom: 1px solid var(--gray);
}
.pricing-card ul li::before { content: "✓ "; color: var(--red); font-weight: 700; }

.all-include {
  background: var(--gray); border-radius: var(--radius);
  padding: 1.5rem 2rem; margin-top: 2rem;
}
.all-include h4 { font-weight: 700; margin-bottom: 1rem; }
.include-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.include-grid span {
  background: var(--white); border: 1px solid var(--gray2);
  border-radius: 8px; padding: 0.4rem 1rem;
  font-size: 0.9rem; font-weight: 600;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.portfolio-card {
  border: 1px solid var(--gray2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.portfolio-card:hover { box-shadow: 0 8px 32px rgba(211,47,47,0.12); transform: translateY(-4px); }
.portfolio-preview {
  position: relative; height: 220px; overflow: hidden;
  background: var(--gray);
}
.portfolio-preview iframe {
  width: 200%; height: 200%;
  transform: scale(0.5); transform-origin: top left;
  border: none; pointer-events: none;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(211,47,47,0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  text-decoration: none;
}
.portfolio-overlay span {
  color: var(--white); font-weight: 700; font-size: 1.1rem;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { padding: 1.25rem; }
.portfolio-info h3 { font-weight: 700; margin-bottom: 0.4rem; }
.portfolio-info p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.75rem; }
.portfolio-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.portfolio-tags span {
  background: #fff3f3; color: var(--red);
  border: 1px solid #ffcdd2;
  border-radius: 20px; padding: 0.2rem 0.75rem;
  font-size: 0.8rem; font-weight: 600;
}

/* ===== ABOUT ===== */
.about-inner {
  display: grid; grid-template-columns: auto 1fr;
  gap: 4rem; align-items: center;
}
.about-img img {
  width: 220px; border-radius: var(--radius);
  filter: drop-shadow(0 8px 24px rgba(211,47,47,0.15));
}
.about-text p {
  color: var(--text-light); line-height: 1.8;
  margin-bottom: 1rem; font-size: 1rem;
}
.about-skills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem;
}
.about-skills span {
  background: var(--gray); border: 1px solid var(--gray2);
  border-radius: 8px; padding: 0.35rem 0.85rem;
  font-size: 0.85rem; font-weight: 600;
}

/* ===== CONTACT ===== */
.call-box {
  background: var(--black); color: var(--white);
  border-radius: var(--radius); padding: 2rem;
  margin-bottom: 2.5rem; text-align: center;
}
.call-status-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 1rem; font-size: 0.95rem;
}
.call-dot-lg {
  width: 12px; height: 12px; border-radius: 50%;
  background: #4caf50; display: inline-block;
  animation: pulse 1.5s infinite;
}
.call-dot-lg.offline { background: #666; animation: none; }
.btn-call-big {
  background: var(--red); color: var(--white);
  border: none; border-radius: 10px;
  padding: 1rem 2.5rem; font-size: 1.1rem;
  font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-call-big:hover:not(:disabled) { background: var(--red-dark); transform: scale(1.03); }
.btn-call-big:disabled { background: #444; cursor: not-allowed; }
.call-note { font-size: 0.8rem; color: #aaa; margin-top: 0.75rem; }
.in-call-ui { margin-top: 1.5rem; }
.call-timer {
  font-size: 2rem; font-weight: 900; color: var(--red);
  font-variant-numeric: tabular-nums; margin-bottom: 0.5rem;
}
.btn-end-call {
  background: #c62828; color: var(--white);
  border: none; border-radius: 8px;
  padding: 0.75rem 2rem; font-size: 1rem;
  font-weight: 700; cursor: pointer; margin-top: 1rem;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-form h3, .contact-info h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--gray2); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem;
  margin-bottom: 1rem; outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { resize: vertical; }
.form-msg {
  margin-top: 0.75rem; font-size: 0.9rem;
  font-weight: 600; min-height: 1.2rem;
}
.form-msg.success { color: #2e7d32; }
.form-msg.error { color: var(--red); }

.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-item > span { font-size: 1.4rem; }
.contact-item div { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-item strong { font-size: 0.85rem; color: var(--text-light); }
.contact-item a, .contact-item span:last-child {
  font-weight: 600; color: var(--text); text-decoration: none;
}
.contact-item a:hover { color: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: var(--black); color: var(--white);
  padding: 2rem 1.5rem; text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
footer p { font-size: 0.9rem; opacity: 0.7; }

/* ===== ADMIN PANEL ===== */
#adminPanel {
  position: fixed; inset: 0; background: #0a0a0a;
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
}
.admin-box {
  background: #1a1a1a; border: 1px solid #333;
  border-radius: 16px; padding: 2rem;
  width: 100%; max-width: 420px; color: var(--white);
}
#adminLoginUI h3 { font-size: 1.3rem; margin-bottom: 1.5rem; text-align: center; }
#adminPasswordInput {
  width: 100%; padding: 0.75rem 1rem;
  background: #111; border: 1px solid #444; border-radius: 8px;
  color: var(--white); font-size: 1rem; font-family: inherit; outline: none;
}
#adminPasswordInput:focus { border-color: var(--red); }
#adminLoginError { color: var(--red); font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.2rem; }

.admin-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}
.admin-header h3 { font-size: 1rem; font-weight: 700; }

.admin-status-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #111; border-radius: 10px; padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
#adminStatus { font-weight: 600; font-size: 0.9rem; }

.admin-incoming {
  background: #111; border: 1px solid #444; border-radius: 12px;
  padding: 1.5rem; text-align: center; margin-bottom: 1.5rem;
}
.admin-incoming h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.ring-animation {
  font-size: 2.5rem; margin-bottom: 0.5rem;
  animation: ring 0.5s ease-in-out infinite alternate;
  display: inline-block;
}
@keyframes ring {
  from { transform: rotate(-15deg); }
  to   { transform: rotate(15deg); }
}

.admin-incall {
  background: #111; border: 1px solid #333; border-radius: 12px;
  padding: 1.5rem; text-align: center; margin-bottom: 1.5rem;
}
.admin-incall .call-timer { font-size: 2.5rem; color: #4caf50; }

/* Sound wave animation */
.call-wave {
  display: flex; align-items: center; justify-content: center; gap: 4px; height: 32px;
}
.call-wave span {
  display: inline-block; width: 4px; background: #4caf50; border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}
.call-wave span:nth-child(1) { animation-delay: 0s;    height: 8px; }
.call-wave span:nth-child(2) { animation-delay: 0.1s;  height: 16px; }
.call-wave span:nth-child(3) { animation-delay: 0.2s;  height: 24px; }
.call-wave span:nth-child(4) { animation-delay: 0.3s;  height: 16px; }
.call-wave span:nth-child(5) { animation-delay: 0.4s;  height: 8px; }
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.4); }
}

.admin-section { margin-top: 1rem; }
.admin-section h4 { font-size: 0.9rem; color: #aaa; margin-bottom: 0.75rem; }
.call-log { display: flex; flex-direction: column; gap: 0.4rem; }
.log-item {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem; font-size: 0.8rem; color: #ccc;
  background: #111; border-radius: 6px; padding: 0.4rem 0.75rem;
}
.log-item span:last-child { color: #aaa; text-align: right; }

/* Language toggle */
.lang-toggle {
  background: var(--gray); border: 1px solid var(--gray2);
  border-radius: 20px; padding: 0.3rem 0.85rem;
  font-weight: 700; font-size: 0.8rem; cursor: pointer;
  color: var(--text); transition: background 0.2s, color 0.2s;
  letter-spacing: 0.05em;
}
.lang-toggle:hover { background: var(--red); color: var(--white); border-color: var(--red); }
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray2);
    padding: 1rem; gap: 0.25rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.6rem 1rem; }
  .nav-call { width: 100%; justify-content: center; margin-top: 0.5rem; }

  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-logo-img { width: 160px; margin: 0 auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }

  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-img { display: flex; justify-content: center; }
  .about-skills { justify-content: center; }

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

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
