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

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #ff1616;
  --primary-light: #ff4444;
  --primary-dark: #cc1111;
  --secondary-color: #f59e0b;
  --success-color: #10b981;
  --dark-color: #1f2937;
  --gray-color: #6b7280;
  --light-gray: #f3f4f6;
  --white-color: #ffffff;
  --black-color: #000000;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #ff1616 0%, #ff4444 100%);
  --hero-gradient: linear-gradient(135deg, #cc1111 0%, #ff1616 50%, #ff4444 100%);
  --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  
  /* Spacing */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  --mb-4: 4rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.5s ease;
  
  /* Shadows */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 4px 16px rgba(30, 64, 175, 0.3);
  
  /* Border Radius */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.125rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--white-color);
}

h1, h2, h3, h4 {
  color: var(--dark-color);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mb-1);
  padding-right: var(--mb-1);
}

.section {
  padding: var(--mb-4) 0;
}

.section__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-black);
  text-align: center;
  margin-bottom: var(--mb-1);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  text-align: center;
  color: var(--gray-color);
  margin-bottom: var(--mb-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__header {
  margin-bottom: var(--mb-3);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--mb-0-5);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: var(--font-semibold);
  font-size: var(--normal-font-size);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  font-weight: var(--font-black);
  font-size: 1.25rem;
  color: var(--primary-color);
}

.nav__logo-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav__list {
  display: flex;
  gap: var(--mb-2);
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--dark-color);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.25rem;
  color: var(--dark-color);
  cursor: pointer;
}

/* ===== HOME SECTION ===== */
.home {
  background: var(--hero-gradient);
  padding-top: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.home__container {
  position: relative;
  z-index: 2;
}

.home__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-4);
  align-items: center;
}

.home__subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--mb-0-5);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  padding: var(--mb-0-5) var(--mb-1);
  border-radius: var(--border-radius-lg);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
  backdrop-filter: blur(10px);
}

.home__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-black);
  color: var(--white-color);
  margin-bottom: var(--mb-1);
  line-height: 1.1;
}

.home__title-accent {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.home__buttons {
  display: flex;
  gap: var(--mb-1);
  flex-wrap: wrap;
}

.home__image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.home__security-elements {
  position: relative;
  width: 300px;
  height: 300px;
}

.security-camera,
.security-shield,
.security-lock {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white-color);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

.security-camera {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.security-shield {
  bottom: 0;
  left: 0;
  animation-delay: 1s;
}

.security-lock {
  bottom: 0;
  right: 0;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===== STATS SECTION ===== */
.stats {
  background: var(--white-color);
  padding: var(--mb-3) 0;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--mb-2);
}

.stats__item {
  text-align: center;
  padding: var(--mb-2);
  background: var(--card-gradient);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.stats__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stats__number {
  font-size: 2.5rem;
  font-weight: var(--font-black);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--mb-0-5);
}

.stats__label {
  color: var(--gray-color);
  font-weight: var(--font-medium);
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--light-gray);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--mb-2);
}

.service__card {
  background: var(--white-color);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.service__icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white-color);
  margin-bottom: var(--mb-1-5);
}

.service__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  color: var(--dark-color);
}

.service__description {
  color: var(--gray-color);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.service__features {
  list-style: none;
}

.service__features li {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  margin-bottom: var(--mb-0-75);
  color: var(--dark-color);
}

.service__features i {
  color: var(--success-color);
  font-size: var(--small-font-size);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--white-color);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-4);
  align-items: start;
}

.about__description {
  color: var(--gray-color);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--mb-2-5);
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--mb-2);
}

.about__feature {
  display: flex;
  gap: var(--mb-1);
  align-items: flex-start;
}

.about__feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white-color);
  flex-shrink: 0;
}

.about__feature-title {
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
  margin-bottom: var(--mb-0-5);
  color: var(--dark-color);
}

.about__feature-description {
  color: var(--gray-color);
  line-height: 1.6;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--card-gradient);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 6rem;
}

.contact-form__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--mb-2);
  color: var(--dark-color);
}

.form__group {
  margin-bottom: var(--mb-1-5);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: var(--normal-font-size);
  transition: var(--transition);
  background: var(--white-color);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--light-gray);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--mb-2);
}

.contact__card {
  background: var(--white-color);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

.contact__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact__icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white-color);
  margin: 0 auto var(--mb-1);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  margin-bottom: var(--mb-1);
  color: var(--dark-color);
}

.contact__info p {
  color: var(--gray-color);
  margin-bottom: var(--mb-0-5);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: var(--mb-4) 0 var(--mb-2);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--mb-2-5);
  margin-bottom: var(--mb-2);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  font-weight: var(--font-black);
  font-size: 1.25rem;
  margin-bottom: var(--mb-1);
}

.footer__logo-icon {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.footer__description {
  color: #9ca3af;
  line-height: 1.6;
}

.footer__title {
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
  margin-bottom: var(--mb-1);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--mb-0-75);
}

.footer__link {
  color: #9ca3af;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-light);
}

.footer__bottom {
  border-top: 1px solid #374151;
  padding-top: var(--mb-2);
  text-align: center;
}

.footer__copy {
  color: #9ca3af;
  font-size: var(--small-font-size);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--primary-gradient);
  opacity: 0.8;
  padding: 0.5rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.scrollup__icon {
  font-size: 1.25rem;
  color: var(--white-color);
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
  
  .home__content {
    grid-template-columns: 1fr;
    gap: var(--mb-2);
    text-align: center;
  }
  
  .about__content {
    grid-template-columns: 1fr;
    gap: var(--mb-3);
  }
  
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--mb-2);
    text-align: center;
  }
  
  .nav__link {
    font-size: 1.125rem;
  }
  
  .nav__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .nav__actions .btn {
    display: none;
  }
  
  .home__buttons {
    justify-content: center;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--small-font-size);
  }
  
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .home__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home__security-elements {
    width: 250px;
    height: 250px;
  }
  
  .security-camera,
  .security-shield,
  .security-lock {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.animate-fade-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-right {
  animation: fadeInRight 0.6s ease-out;
}

