/* Base */
:root { color-scheme: light dark; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #0f172a; background: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout helpers */
.container { width: min(1100px, 92%); margin: 0 auto; }
.grid { display: grid; gap: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid #e2e8f0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-logo.small { width: 28px; height: 28px; }
.brand-logo-full { height: 35px; width: auto; object-fit: contain; }
.brand-logo-full.small { height: 28px; }
.brand-name { letter-spacing: 0.2px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { padding: 8px 10px; border-radius: 8px; color: #0f172a; }
.nav .cta-link { background: #1f2937; color: #fff; }
.nav a:hover { background: #e2e8f0; }

/* Hero */
.hero { padding: 56px 0 28px; background: linear-gradient(180deg, #f8fafc, #ffffff); border-bottom: 1px solid #e2e8f0; }
.hero-image { display: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; }
.hero-copy h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.hero-copy p { margin: 0 0 18px; color: #334155; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 12px; }
.hero-badges { display: flex; gap: 12px; padding: 0; margin: 0; list-style: none; color: #475569; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid #1f2937; font-weight: 600; }
.btn.primary { background: #1f2937; color: #fff; }
.btn.secondary { background: #fff; color: #1f2937; }
.btn.full { width: 100%; }
.btn:hover { filter: brightness(0.8); }

/* Sections */
.section { padding: 56px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); text-align: center; }
.section-subtitle { margin: 0 0 24px; color: #475569; text-align: center; }

/* Services */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.services .card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; }
.card { padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08); }
.card h3 { margin: 10px 0 6px; }
.card p { margin: 0; color: #475569; }

/* Portfolio Grid - Desktop */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 580px;
  width: 100%;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.portfolio-image {
  width: 100%;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.3s ease;
}

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

.portfolio-content {
  padding: 24px;
  position: relative;
}

.portfolio-content h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

.portfolio-content p {
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

.portfolio-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* Device Mockup Styles */
.device-mockup {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-mockup:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.1);
}

.device-frame {
  position: relative;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.device-screen {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 
    0 0 0 2px #4a5568,
    inset 0 0 0 1px #e2e8f0;
  position: relative;
}

.device-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1;
}

.device-screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  position: relative;
  z-index: 0;
}

/* Laptop Mockup */
.laptop-mockup .device-frame {
  padding: 16px 16px 12px;
  border-radius: 16px;
}

.laptop-mockup .device-frame::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 8px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.laptop-mockup .device-screen {
  aspect-ratio: 16/10;
  border-radius: 8px;
}

/* Desktop Mockup */
.desktop-mockup .device-frame {
  padding: 12px;
  border-radius: 12px;
}

.desktop-mockup .device-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.desktop-mockup .device-frame::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 20px;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.desktop-mockup .device-screen {
  aspect-ratio: 16/9;
  border-radius: 6px;
}

/* Mobile Mockup */
.mobile-mockup {
  max-width: 220px;
  margin: 0 auto;
}

.mobile-mockup .device-frame {
  padding: 20px 12px;
  border-radius: 24px;
}

.mobile-mockup .device-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #4a5568;
  border-radius: 2px;
}

.mobile-mockup .device-screen {
  aspect-ratio: 9/16;
  border-radius: 16px;
}

/* Device Labels */
.device-label {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #666;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.close:hover {
  color: #000;
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

.sector-badge {
  background: #1f2937;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-description {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.modal-features h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.modal-features ul {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.modal-features li {
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.modal-actions .btn {
  flex: 1;
}

/* Pricing */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.price-card { position: relative; padding: 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; display: flex; flex-direction: column; gap: 10px; }
.price-card .price { font-size: 26px; font-weight: 800; color: #1f2937; margin: 0 0 4px; }
.price-card ul { margin: 0 0 12px; padding-left: 18px; color: #475569; }
.price-card.popular { box-shadow: none; }
.price-card .ribbon { position: absolute; top: 12px; right: 12px; background: #1f2937; color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-list { margin: 12px 0 0; padding-left: 16px; }
.contact-form .form-row { margin-bottom: 12px; }
.contact-form label { display: block; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #1f2937; outline-offset: 2px; }

/* Footer */
.site-footer { border-top: 1px solid #e2e8f0; background: #f8fafc; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.footer-inner p { margin: 0; color: #475569; }

/* Responsive */
@media (max-width: 480px) {
  .site-header {
    display: none;
  }
  .hero {
    padding: 20px 0 28px;
  }
  .hero-inner { 
    grid-template-columns: 1fr; 
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hero-copy {
    order: 1;
    text-align: center;
  }
  .hero-visual {
    order: 2;
  }
  .hero-copy h1 {
    margin-bottom: 20px;
  }
  .hero-copy p {
    margin-bottom: 20px;
  }
  .hero-actions {
    justify-content: center;
    margin-bottom: 20px;
  }
  .hero-badges {
    justify-content: center;
  }
  .contact-inner { grid-template-columns: 1fr; }
  
  .portfolio-image {
    height: 260px;
  }
  
  .portfolio-content {
    padding: 24px;
  }
  
  .portfolio-content h3 {
    font-size: 20px;
  }
  
  .portfolio-content p {
    font-size: 15px;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-header {
    padding: 20px 20px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  /* Force light mode - Dark mode disabled */
  body { 
    color: #1f2937 !important; 
    background: #ffffff !important; 
  }
  .site-header { 
    background: rgba(255,255,255,0.95) !important; 
    border-bottom-color: #e2e8f0 !important; 
  }
  .nav a { 
    color: #1f2937 !important; 
  }
  .nav a:hover { 
    background: #f8fafc !important; 
  }
  .hero { 
    background: linear-gradient(180deg, #f8fafc, #ffffff) !important; 
    border-bottom-color: #e2e8f0 !important; 
  }
  .card, .price-card { 
    background: #ffffff !important; 
    border-color: #e2e8f0 !important; 
  }
  .section-subtitle, .card p, .price-card ul, .footer-inner p, .hero-copy p { 
    color: #475569 !important; 
  }
  .price-card .price { 
    color: #1f2937 !important; 
  }
  .price-card h3 { 
    color: #1f2937 !important; 
  }
  .price-card .btn { 
    background: #1f2937 !important; 
    color: #ffffff !important; 
    border-color: #1f2937 !important; 
  }
  .price-card .btn:hover { 
    background: #374151 !important; 
  }
  .device-mockup { 
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important; 
  }
  .device-frame { 
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important; 
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.1),
      0 4px 8px rgba(0, 0, 0, 0.1) !important;
  }
  .device-screen { 
    box-shadow: 
      0 0 0 2px #e2e8f0,
      inset 0 0 0 1px #cbd5e1 !important;
  }
  .device-screen::before {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom-color: #374151;
  }
  .site-footer { background: #0f172a; border-top-color: #1f2937; }
  .contact-form input, .contact-form textarea { background: #0b1220; border-color: #1f2937; color: #e5e7eb; }
  
  .modal-content {
    background-color: #0f172a;
    border: 1px solid #1f2937;
  }
  
  .modal-header {
    border-bottom-color: #1f2937;
  }
  
  .modal-header h2 {
    color: #e5e7eb;
  }
  
  .modal-description {
    color: #94a3b8;
  }
  
  .modal-features h3 {
    color: #e5e7eb;
  }
  
  .modal-features ul {
    color: #94a3b8;
  }
  
  .close {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.9);
  }
  
  .close:hover {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 1);
  }
  
  .portfolio-card {
    background: #0f172a;
    border-color: #1f2937;
  }
  
  .portfolio-content h3 {
    color: #e5e7eb;
  }
  
  .portfolio-content p {
    color: #94a3b8;
  }
  
  .portfolio-badge {
    background: #1e293b;
    color: #94a3b8;
  }
}

@media (max-width: 320px) {
  .nav { 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 8px; 
  }
  .nav a { 
    padding: 4px 6px; 
    font-size: 13px; 
  }
  .brand { 
    font-size: 16px; 
  }
}

/* Mobile Portfolio Grid Fix */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 16px;
  }
}

