/* ============================================
   SecureVision CCTV - Modern Website Styles
   ============================================ */

:root {
  --primary: #0a1628;
  --primary-light: #132337;
  --accent: #00d4ff;
  --accent-dark: #00a8cc;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --dark: #020617;
  --card-bg: #0f1c2e;
  --border: rgba(148, 163, 184, 0.15);
  --success: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--accent);
  color: var(--dark);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.logo i {
  color: var(--accent);
  font-size: 26px;
}

.logo .accent {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  margin-left: 24px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: 
    linear-gradient(135deg, rgba(10, 22, 40, 0.92), rgba(10, 22, 40, 0.85)),
    url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-text {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ========== SERVICES ========== */
.services {
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 14px;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  gap: 12px;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-list {
  margin: 28px 0 36px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text);
}

.about-list i {
  color: var(--accent);
  font-size: 18px;
}

.about-image {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card {
  background: linear-gradient(145deg, var(--card-bg), var(--primary-light));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 50%;
  color: var(--accent);
  font-size: 28px;
}

.about-card h4 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.about-stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stats-box > div {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.big-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.about-stats-box span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== PROJECTS ========== */
.projects {
  background: var(--dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 280px;
}

.project-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project-1 {
  background-image: linear-gradient(rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.6)),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=800&q=80');
}

.project-2 {
  background-image: linear-gradient(rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.6)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=800&q=80');
}

.project-3 {
  background-image: linear-gradient(rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.6)),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=800&q=80');
}

.project-4 {
  background-image: linear-gradient(rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.6)),
    url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=800&q=80');
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(transparent 30%, rgba(10, 22, 40, 0.9));
}

.project-tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 10px;
}

.project-overlay h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 4px;
}

.project-overlay p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}

.why-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.why-number {
  font-size: 36px;
  font-weight: 800;
  color: rgba(0, 212, 255, 0.25);
  margin-bottom: 16px;
  line-height: 1;
}

.why-card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 15px;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark), #007a99);
  padding: 60px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  color: var(--accent);
  font-size: 18px;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--text);
}

.contact-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 20px 0 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 14px;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }
  .nav.open {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .services-grid,
  .projects-grid,
  .why-grid,
  .testimonials-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn-lg {
    width: 100%;
  }
}
