/* Affordable Computer Services AZ - Optimized Stylesheet */

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

:root {
  --primary: #0056b3;
  --secondary: #58a6ff;
  --dark: #0d1117;
  --light: #f8f9fa;
  --text: #333;
  --border: #e9ecef;
  --success: #28a745;
}

/* Typography */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: #666;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  
  p {
    line-height: 1.7;
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  flex: 1;
}

.logo a {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo a:hover {
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(0, 86, 179, 0.3));
}

.logo-img {
  height: 140px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
  
  .logo-img {
    height: 126px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 110px;
  }
}

/* Navigation */
nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background: #fff;
  width: 100%;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
  max-height: 70vh;
  overflow-y: auto;
}

nav.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul {
  list-style: none;
  padding: 1rem 0;
}

nav li {
  padding: 0;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

nav li:hover {
  border-left-color: var(--primary);
  background: rgba(0, 86, 179, 0.05);
}

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  padding: 1.2rem 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav a:hover {
  color: var(--primary);
  text-decoration: none;
  transform: translateX(8px);
}

nav a:hover::before {
  width: calc(100% - 4rem);
}

/* Icons for nav links */
nav li:nth-child(1) a::after {
  content: '⚙️';
  margin-left: auto;
  font-size: 1.3rem;
}

nav li:nth-child(2) a::after {
  content: 'ℹ️';
  margin-left: auto;
  font-size: 1.3rem;
}

nav li:nth-child(3) a::after {
  content: '📧';
  margin-left: auto;
  font-size: 1.3rem;
}

.menu-toggle button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.25rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }
  
  .menu-toggle {
    padding: 0.5rem 1.25rem;
  }
  
  .menu-toggle button {
    display: flex;
  }
  
  nav li {
    padding: 0;
    border-left-width: 5px;
  }
  
  nav a {
    font-size: 1rem;
    padding: 1rem 1.75rem;
    gap: 10px;
  }
  
  nav a::after {
    font-size: 1.2rem;
  }
  
  nav a::before {
    left: 1.75rem;
  }
  
  nav a:hover::before {
    width: calc(100% - 3.5rem);
  }
}

@media (min-width: 769px) {
  nav {
    display: flex !important;
    position: static;
    background: transparent;
    width: auto;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: none;
  }
  
  nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
  }
  
  nav li {
    padding: 0;
    border-left: none;
  }
  
  nav li:hover {
    background: transparent;
    border-left-color: transparent;
  }
  
  nav a {
    padding: 0.75rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.8px;
    position: relative;
  }
  
  nav a::before {
    bottom: 0;
    left: 1.2rem;
    height: 4px;
    border-radius: 2px 2px 0 0;
  }
  
  nav a:hover {
    transform: translateY(-2px);
  }
  
  nav a:hover::before {
    width: calc(100% - 2.4rem);
  }
  
  nav a::after {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
  }
  
  nav a:hover::after {
    transform: scale(1.2) rotate(10deg);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  /* Fallback: Beautiful gradient background if video fails to load */
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  background-attachment: fixed;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero-video {
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 450px;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 350px;
    padding: 1rem 0;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.6);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
}

.btn-primary:hover {
  background: #004085;
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  padding: 0.75rem 2rem;
}

.btn-secondary:hover {
  background: #4a9cff;
  text-decoration: none;
}

.btn-alt {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.7rem 1.8rem;
}

.btn-alt:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }
  
  .btn-primary {
    padding: 0.85rem 2.25rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 1rem 1.75rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 1rem 2rem;
    width: 100%;
    max-width: 300px;
  }
}

/* Scroll Arrow Button */
#scrollBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: rgba(255, 105, 180, 0.6);
  border: 2px solid rgba(255, 105, 180, 0.8);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 99;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
  -webkit-tap-highlight-color: transparent;
}

#scrollBtn:hover {
  background: rgba(255, 105, 180, 0.8);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.5);
  transform: scale(1.1);
}

#scrollBtn:active {
  transform: scale(0.95);
}

#scrollBtn.show {
  display: flex;
}

#scrollBtn.at-top {
  transform: rotate(180deg);
}

#scrollBtn.at-top:hover {
  transform: rotate(180deg) scale(1.1);
}

@media (max-width: 768px) {
  #scrollBtn {
    width: 52px;
    height: 52px;
    bottom: 25px;
    right: 25px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  #scrollBtn {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.25);
  }
}

/* Section Styling */
section {
  padding: 3rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section {
    padding: 2.5rem 1.5rem;
  }
  
  .section-title {
    margin-bottom: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
  }
  
  .section-title p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 1.25rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-title p {
    font-size: 0.9rem;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }
  
  .card h3 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }
  
  .card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  width: 100%;
}

@media (max-width: 768px) {
  .form-group {
    margin-bottom: 1.75rem;
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 1rem;
    font-size: 16px;
  }
  
  label {
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 0.95rem;
}

footer a {
  color: var(--secondary);
}

@media (max-width: 768px) {
  footer {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }
  
  footer p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* Service List */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-list strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.service-list ul {
  margin-left: 1.5rem;
  color: #666;
  font-size: 0.95rem;
}

.service-list ul li {
  background: transparent;
  padding: 0.25rem 0;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .service-list li {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-list strong {
    font-size: 0.95rem;
  }
  
  .service-list ul {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .service-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .service-list strong {
    font-size: 0.9rem;
  }
  
  .service-list ul {
    font-size: 0.85rem;
    margin-left: 1.25rem;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

.highlight {
  background: rgba(88, 166, 255, 0.1);
  padding: 2rem;
  border-left: 4px solid var(--secondary);
  border-radius: 5px;
  margin: 2rem 0;
}

/* Success Message */
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  header, footer, .no-print {
    display: none;
  }
  body {
    background: white;
  }
  .card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
