/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and Medium Screens */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Navigation */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.99);
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    padding: 0;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a.active {
    background: rgba(0, 102, 255, 0.1);
    border-left: 3px solid var(--primary-light);
  }

  .nav-menu a.active::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-image {
    position: relative;
    height: 400px;
  }

  .floating-card {
    position: absolute;
    width: 120px;
  }

  .floating-card.card-1 {
    top: 0;
    left: 0;
  }

  .floating-card.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .floating-card.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Two Column Layout */
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Why Section */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Trust Stats */
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact Wrapper */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  /* Sections */
  .section,
  .section-alt {
    padding: 50px 0;
  }

  .page-header {
    padding: 50px 0;
  }

  .hero {
    padding: 60px 0;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  :root {
    font-size: 13px;
  }

  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1rem;
  }

  /* Hero Section */
  .hero {
    padding: 40px 0;
  }

  .hero-logo {
    max-width: 150px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .floating-card {
    width: 100px;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  /* Navigation */
  .nav-content {
    padding: 0.75rem 0;
  }

  .nav-logo a {
    gap: 0.5rem;
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .nav-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  /* Forms */
  .contact-form {
    gap: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
  }

  /* Contact Wrapper */
  .contact-wrapper {
    gap: 2rem;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  /* Grids */
  .trust-stats {
    grid-template-columns: 1fr;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

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

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

  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .exp-card {
    padding: 1.5rem;
  }

  .exp-card h3 {
    font-size: 2rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

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

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

  /* Sections */
  .section,
  .section-alt {
    padding: 40px 0;
  }

  .page-header {
    padding: 40px 0;
  }

  .cta-section {
    padding: 40px 0;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }

  .footer-logo {
    width: 40px;
    height: 40px;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section h5 {
    font-size: 0.95rem;
  }

  .footer-section p {
    font-size: 0.95rem;
  }

  /* Highlights & Features */
  .highlight-box {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .highlight-box h4 {
    font-size: 1rem;
  }

  .feature-list,
  .benefits-list,
  .values-list {
    gap: 0.75rem;
  }

  .feature-list li {
    font-size: 0.95rem;
  }

  /* Social Links */
  .social-links {
    flex-direction: column;
  }

  .social-links a {
    width: 100%;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

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

  .exp-card h3 {
    font-size: 1.75rem;
  }

  .stat-card h3 {
    font-size: 1.75rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .navbar,
  .footer,
  .cta-section {
    display: none;
  }

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

  .service-card,
  .why-card,
  .pricing-card {
    page-break-inside: avoid;
  }
}

/* High Resolution Displays */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-title {
    font-size: 4rem;
  }
}

/* Dark Mode (already implemented, but explicitly stated) */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
