/* site.css — cometo.pl — portfolio & pages */

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0f1f33 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* Hero visual — floating cards */
.hero-visual {
  position: relative;
  height: 340px;
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  animation: floatCard 6s ease-in-out infinite;
  transition: transform .3s;
}

.hero-card i { font-size: 2rem; }

.hero-card:hover { transform: scale(1.08); }

.hc-1 { top: 0; left: 10%; animation-delay: 0s; }
.hc-2 { top: 20px; right: 5%; animation-delay: 1.5s; }
.hc-3 { bottom: 40px; left: 5%; animation-delay: 3s; }
.hc-4 { bottom: 10px; right: 15%; animation-delay: 4.5s; }

.hc-1 i { color: #60a5fa; }
.hc-2 i { color: #34d399; }
.hc-3 i { color: #a78bfa; }
.hc-4 i { color: #fbbf24; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── SECTIONS ──────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(59,130,246,.1);
  color: var(--accent);
  margin-bottom: 12px;
}

.badge-dark {
  background: var(--primary);
  color: #fff;
}

/* ── SERVICES ──────────────────────────────────── */
.services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--text);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.si-blue { background: rgba(59,130,246,.12); color: #3b82f6; }
.si-green { background: rgba(16,185,129,.12); color: #10b981; }
.si-purple { background: rgba(139,92,246,.12); color: #8b5cf6; }
.si-orange { background: rgba(245,158,11,.12); color: #f59e0b; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.service-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── PORTFOLIO ─────────────────────────────────── */
.portfolio { background: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pf-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,.9);
}

.pf-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.pf-green  { background: linear-gradient(135deg, #10b981, #059669); }
.pf-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pf-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.pf-rose   { background: linear-gradient(135deg, #f43f5e, #be123c); }
.pf-teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.pf-body { padding: 20px 24px 24px; }

.pf-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pf-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
}

.pf-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.pf-body p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.pf-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── TECH ──────────────────────────────────────── */
.tech-section { background: #fff; }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color .15s, background .15s;
}

.tech-item:hover {
  border-color: var(--accent);
  background: rgba(59,130,246,.04);
}

.tech-item i {
  font-size: 1.2rem;
  color: var(--accent);
}

/* ── CTA ───────────────────────────────────────── */
.cta-section {
  background: var(--bg);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: #f0f4f8;
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ── PAGE CONTENT (generic) ────────────────────── */
.page-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto;
}

/* ── SERVICE DETAIL ────────────────────────────── */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.svc-detail.reverse { direction: rtl; }
.svc-detail.reverse > * { direction: ltr; }

.svc-detail-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.svc-detail-text p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.svc-features {
  list-style: none;
  padding: 0;
}

.svc-features li {
  padding: 8px 0;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.svc-features li i {
  color: var(--accent);
  font-size: 1rem;
}

.svc-visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 260px;
}

.svc-visual i {
  font-size: 5rem;
  color: rgba(255,255,255,.85);
}

/* ── CONTACT FORM ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-block .ci-icon {
  width: 44px;
  height: 44px;
  background: rgba(59,130,246,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-block h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-info-block p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ── ABOUT PAGE ────────────────────────────────── */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.value-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.value-card p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── PORTFOLIO CARDS (new) ─────────────────────── */
.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pcard {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
  text-decoration: none;
  color: var(--text);
}

.pcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: var(--text);
}

.pcard-thumb {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.pcard-thumb i {
  font-size: 2.8rem;
  color: rgba(255,255,255,.9);
}

.pcard-thumb-img {
  padding: 0;
}

.pcard-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .3s;
}

.pcard:hover .pcard-thumb-img img {
  transform: scale(1.05);
}

.pcard-domain-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}

.pcard-domain {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .3px;
}

.pcard-body {
  padding: 16px 20px 20px;
}

.pcard-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pcard-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
}

.pcard-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.pcard-body p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pcard-app {
  cursor: default;
}

.pcard-app:hover {
  transform: translateY(-2px);
}

/* ── SOCIAL / FACEBOOK ─────────────────────────── */
.social-section { background: #fff; }

.fb-widget-wrap {
  display: flex;
  justify-content: center;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}

.footer-social a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px 40px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .section-header h2 { font-size: 1.6rem; }
  .section-inner { padding: 48px 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-cards { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 1.5rem; }
  .page-content { padding: 32px 16px; }
}
