*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{font-family:'Outfit',sans-serif;background:#050505;color:#e8e8e8;overflow-x:hidden;-webkit-font-smoothing:antialiased}

:root{
  --red:#dc2626;--red-hover:#ef4444;--red-glow:rgba(220,38,38,0.15);--red-dim:rgba(220,38,38,0.06);
  --red-border:rgba(220,38,38,0.08);--dark:#050505;--dark2:#0a0a0a;--dark3:#111;
  --gray:#71717a;--gray-dark:#52525b;--gray-darker:#333;--light:#f4f4f5;--white:#fff;
  --font-mono:'Space Mono',monospace;--font-body:'Outfit',sans-serif;
  --nav-height:72px;--section-padding:100px 64px;--container-max:1200px;
}

/* NAV */
.nav{display:flex;justify-content:space-between;align-items:center;padding:0 64px;height:var(--nav-height);border-bottom:1px solid var(--red-border);position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(5,5,5,0.8);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.nav-logo{font-family:var(--font-mono);font-size:20px;font-weight:700;display:flex;align-items:center;gap:1px;text-decoration:none}
.nav-logo .red{color:var(--red)}.nav-logo .dim{color:#333}.nav-logo .dark{color:#1a1a1a}
.nav-links{display:flex;align-items:center;gap:36px;list-style:none}
.nav-links li{list-style:none}
.nav-links a{font-size:13px;color:#555;text-decoration:none;letter-spacing:.5px;transition:color .3s;position:relative}
.nav-links a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;background:var(--red);transition:width .3s}
.nav-links a:hover{color:var(--red)}.nav-links a:hover::after{width:100%}
.nav-cta{color:var(--red);border:1px solid rgba(220,38,38,0.3);padding:9px 22px;border-radius:6px;font-size:13px;text-decoration:none;transition:all .3s;font-weight:500}
.nav-cta:hover{background:var(--red);color:var(--white);border-color:var(--red)}
.nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;z-index:1002;position:relative}
.nav-toggle span{width:24px;height:2px;background:#888;transition:all .3s;display:block}
body.menu-open{overflow:hidden}

/* HERO */
.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:140px 64px 80px;min-height:100vh;position:relative;overflow:hidden;max-width:var(--container-max);margin:0 auto}
.hero-glow{position:absolute;top:-150px;right:-150px;width:600px;height:600px;background:radial-gradient(circle,rgba(220,38,38,0.06) 0%,transparent 70%);pointer-events:none}
.hero-glow-2{position:absolute;bottom:-100px;left:-100px;width:400px;height:400px;background:radial-gradient(circle,rgba(220,38,38,0.03) 0%,transparent 70%);pointer-events:none}
.hero-left{position:relative;z-index:2;animation:slideInLeft .9s ease both}
.hero-tag{font-family:var(--font-mono);font-size:11px;color:var(--red);letter-spacing:3px;margin-bottom:24px;display:flex;align-items:center;gap:12px}
.hero-tag::before{content:'';width:28px;height:1px;background:var(--red)}
.hero-title{font-size:52px;font-weight:700;line-height:1.08;margin-bottom:24px;color:var(--white)}
.hero-title .accent{color:var(--red);position:relative}
.hero-title .word{display:inline-block;opacity:0;transform:translateY(18px);animation:wordFadeIn .5s ease forwards}
.hero-desc .word{display:inline-block;opacity:0;transform:translateY(12px);animation:wordFadeIn .4s ease forwards}
.hero-desc{font-size:17px;color:var(--gray-dark);line-height:1.8;max-width:460px;margin-bottom:40px;font-weight:300}
.hero-btns{display:flex;gap:14px}
.btn-primary{background:var(--red);color:var(--white);padding:14px 36px;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer;transition:all .3s;border:none;font-family:var(--font-body);position:relative;overflow:hidden;text-decoration:none;display:inline-block}
.btn-primary::after{content:'';position:absolute;top:50%;left:50%;width:0;height:0;background:rgba(255,255,255,0.15);border-radius:50%;transform:translate(-50%,-50%);transition:width .5s,height .5s}
.btn-primary:hover{filter:brightness(1.1)}.btn-primary:hover::after{width:400px;height:400px}
.btn-outline{border:1px solid rgba(255,255,255,0.1);color:#a1a1aa;padding:14px 36px;border-radius:8px;font-size:15px;cursor:pointer;transition:all .3s;background:transparent;text-decoration:none;display:inline-block;font-family:var(--font-body)}
.btn-outline:hover{border-color:var(--red);color:var(--red)}

/* HERO PHOTO */
.hero-right{display:flex;justify-content:center;align-items:center;position:relative;animation:slideInRight .9s ease .2s both}
.hero-photo{width:340px;height:340px;border-radius:20px;overflow:hidden;position:relative;border:2px solid rgba(220,38,38,0.2);animation:glowPulse 4s ease-in-out infinite;z-index:2}
.hero-photo img{width:100%;height:100%;object-fit:cover;filter:grayscale(20%) contrast(1.05);transition:filter .5s}
.hero-photo:hover img{filter:grayscale(0%) contrast(1.1)}
.hero-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(220,38,38,0.08) 0%,transparent 60%);pointer-events:none}
.photo-frame{position:absolute;top:-14px;right:calc(50% - 184px);width:340px;height:340px;border:1px solid rgba(220,38,38,0.12);border-radius:20px;z-index:1}
.photo-dots{position:absolute;bottom:-24px;left:calc(50% - 194px);display:grid;grid-template-columns:repeat(5,8px);gap:6px;opacity:.25;z-index:1}
.photo-dots span{width:8px;height:8px;border-radius:50%;background:var(--red)}
.code-float{position:absolute;font-family:var(--font-mono);font-size:11px;color:rgba(220,38,38,0.2);pointer-events:none;white-space:nowrap;animation:float 6s ease-in-out infinite;z-index:3}
.cf1{top:80px;right:20px}.cf2{bottom:40px;right:0;animation-delay:2s}.cf3{top:120px;left:20px;animation-delay:4s}
.orbit{position:absolute;width:440px;height:440px;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}
.orbit-ring{position:absolute;inset:0;border:1px solid rgba(220,38,38,0.03);border-radius:50%;animation:rotateSlow 35s linear infinite}
.orbit-ring:nth-child(2){inset:-35px;animation-duration:50s;animation-direction:reverse}
.orbit-dot{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--red);top:0;left:50%}

/* STATS */
.stats{display:flex;max-width:var(--container-max);margin:0 auto;padding:0 64px}
.stat-item{flex:1;padding:32px 0;text-align:center;border-top:1px solid var(--red-border);border-bottom:1px solid var(--red-border);position:relative}
.stat-item:not(:last-child)::after{content:'';position:absolute;right:0;top:20%;height:60%;width:1px;background:var(--red-border)}
.stat-num{font-family:var(--font-mono);font-size:36px;font-weight:700;color:var(--red);margin-bottom:6px}
.stat-label{font-size:12px;color:#444;letter-spacing:1px;text-transform:uppercase}

/* SECTION SHARED */
.section{padding:var(--section-padding);max-width:var(--container-max);margin:0 auto}
.section-tag{font-family:var(--font-mono);font-size:11px;color:var(--red);letter-spacing:3px;margin-bottom:14px;display:flex;align-items:center;gap:12px}
.section-tag::before{content:'';width:28px;height:1px;background:var(--red)}
.section-title{font-size:36px;font-weight:600;margin-bottom:52px;color:var(--white)}
.section-title .thin{font-weight:300;color:#555}

/* SERVICES */
.services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.svc-card{background:var(--dark2);border:1px solid var(--red-border);border-radius:16px;padding:36px;transition:all .4s;cursor:default;position:relative;overflow:hidden}
.svc-card::before{content:'';position:absolute;top:0;left:0;width:100%;height:2px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .4s}
.svc-card:hover::before{transform:scaleX(1)}.svc-card:hover{border-color:rgba(220,38,38,0.15);transform:translateY(-3px)}
.svc-icon{font-family:var(--font-mono);font-size:22px;color:var(--red);margin-bottom:18px;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:var(--red-dim);border-radius:12px}
.svc-name{font-size:18px;font-weight:500;margin-bottom:10px;color:var(--light)}
.svc-desc{font-size:14px;color:var(--gray-dark);line-height:1.7;font-weight:300}

/* TECH STRIP */
.tech-strip{display:flex;gap:12px;flex-wrap:wrap;padding:48px 64px;max-width:var(--container-max);margin:0 auto;border-top:1px solid var(--red-border);border-bottom:1px solid var(--red-border)}
.tech-pill{font-family:var(--font-mono);font-size:12px;color:#444;border:1px solid rgba(255,255,255,0.05);padding:9px 20px;border-radius:24px;transition:all .3s;cursor:default}
.tech-pill:hover{color:var(--red);border-color:rgba(220,38,38,0.2)}

/* PORTFOLIO */
.portfolio-list{display:flex;flex-direction:column;gap:18px}
.pf-card{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:28px;background:var(--dark2);border:1px solid var(--red-border);border-radius:16px;padding:30px 36px;cursor:pointer;transition:all .4s;position:relative;overflow:hidden;text-decoration:none;color:inherit}
.pf-card::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background:linear-gradient(90deg,var(--red),transparent);transform:scaleX(0);transform-origin:left;transition:transform .5s}
.pf-card:hover::after{transform:scaleX(1)}.pf-card:hover{border-color:rgba(220,38,38,0.15);transform:translateX(6px)}
.pf-num{font-family:var(--font-mono);font-size:40px;font-weight:700;color:rgba(220,38,38,0.12)}
.pf-info h3{font-size:18px;font-weight:500;color:var(--light);margin-bottom:6px}
.pf-info p{font-size:13px;color:var(--gray-dark);font-weight:300;line-height:1.6}
.pf-link{font-family:var(--font-mono);font-size:11px;color:var(--red);opacity:.5;transition:opacity .3s;margin-top:8px;display:inline-block}
.pf-card:hover .pf-link{opacity:1}
.pf-tags{display:flex;gap:8px;flex-wrap:wrap}
.pf-tag{font-size:11px;padding:5px 14px;border-radius:6px;font-family:var(--font-mono)}
.pf-tag.red{color:var(--red);background:var(--red-dim);border:1px solid rgba(220,38,38,0.1)}
.pf-tag.gray{color:#555;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.05)}

/* CONTACT */
.contact-section{border-top:1px solid var(--red-border)}
.contact-wrap{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.contact-text h3{font-size:24px;font-weight:500;color:var(--white);margin-bottom:14px}
.contact-text p{font-size:15px;color:var(--gray-dark);line-height:1.8;font-weight:300;margin-bottom:32px}
.contact-link{display:flex;align-items:center;gap:12px;font-size:13px;color:#444;margin-bottom:14px;font-family:var(--font-mono);transition:color .3s}
.contact-link:hover{color:var(--red)}
.contact-link .dot{width:6px;height:6px;border-radius:50%;background:var(--red);flex-shrink:0}
/* CONTACT — form handled by WPForms */

/* FOOTER */
.footer{padding:28px 64px;border-top:1px solid var(--red-border);display:flex;justify-content:space-between;align-items:center;max-width:var(--container-max);margin:0 auto}
.footer-copy{font-family:var(--font-mono);font-size:11px;color:#222}
.footer-links{display:flex;gap:28px}
.footer-links a{font-size:12px;color:#333;text-decoration:none;transition:color .3s}
.footer-links a:hover{color:var(--red)}

/* REVEAL */
.reveal{opacity:0;transform:translateY(32px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
.reveal-d1{transition-delay:.1s}.reveal-d2{transition-delay:.2s}.reveal-d3{transition-delay:.3s}.reveal-d4{transition-delay:.4s}

/* KEYFRAMES */
@keyframes wordFadeIn{to{opacity:1;transform:translateY(0)}}
@keyframes slideInLeft{from{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes glowPulse{0%,100%{box-shadow:0 0 24px rgba(220,38,38,0.08)}50%{box-shadow:0 0 48px rgba(220,38,38,0.18)}}
@keyframes rotateSlow{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}

/* RESPONSIVE */
@media(max-width:1024px){
  :root{--section-padding:80px 40px}
  .nav{padding:0 40px}.hero{padding:120px 40px 60px}.stats{padding:0 40px}.tech-strip{padding:40px}.footer{padding:24px 40px}.hero-title{font-size:42px}
}
@media(max-width:768px){
  :root{--section-padding:64px 24px}
  .nav{padding:0 24px}.nav-links{display:none}.nav-toggle{display:flex}
  .nav-links.open{display:flex;flex-direction:column;position:fixed;top:0;left:0;right:0;bottom:0;background:#050505;justify-content:center;align-items:center;gap:40px;z-index:1001;padding:0;margin:0}
  .nav-links.open li{list-style:none;text-align:center}
  .nav-links.open a{font-size:24px;color:#888;display:block;padding:8px 0}
  .nav-links.open a::after{display:none}
  .nav-links.open a:hover{color:var(--red)}
  .nav-links.open .nav-cta{font-size:18px;padding:14px 36px;border-radius:8px}
  .hero{grid-template-columns:1fr;padding:120px 24px 60px;text-align:center;gap:48px}
  .hero-left{animation:fadeUp .8s ease both}.hero-tag{justify-content:center}.hero-desc{margin-left:auto;margin-right:auto}.hero-btns{justify-content:center}.hero-title{font-size:36px}
  .hero-right{order:-1}.hero-photo{width:240px;height:240px}
  .photo-frame{width:240px;height:240px;right:calc(50% - 134px);top:-10px}.photo-dots{display:none}.orbit{width:300px;height:300px}.code-float{display:none}
  .stats{padding:0 24px;flex-wrap:wrap}.stat-item{flex:1 1 50%;min-width:120px}
  .services-grid{grid-template-columns:1fr}.tech-strip{padding:32px 24px}
  .pf-card{grid-template-columns:1fr;gap:12px;padding:24px}.pf-num{font-size:28px}
  .contact-wrap{grid-template-columns:1fr;gap:40px}.contact-form-wrap{width:100%}
  .footer{padding:24px;flex-direction:column;gap:12px;text-align:center}
}

/* ========================================
   WPFORMS DARK THEME OVERRIDE
   Targeting #wpforms-form-45 structure
======================================== */
.contact-form-wrap{width:100%}

/* Container reset */
.contact-form-wrap .wpforms-container,
.contact-form-wrap .wpforms-container-full{max-width:100%!important;margin:0!important;padding:0!important;background:none!important;border:none!important}

/* Field container */
#wpforms-form-45 .wpforms-field-container{display:flex;flex-direction:column;gap:0}

/* Each field wrapper */
#wpforms-form-45 .wpforms-field{padding:0 0 16px!important;margin:0!important}

/* Labels */
#wpforms-form-45 .wpforms-field-label{
  color:#888!important;
  font-family:var(--font-body)!important;
  font-size:13px!important;
  font-weight:400!important;
  margin-bottom:8px!important;
  display:block!important
}
#wpforms-form-45 .wpforms-field-sublabel{display:none!important}
#wpforms-form-45 .wpforms-required-label{color:var(--red)!important}

/* All text inputs */
#wpforms-form-45 input.wpforms-field-large,
#wpforms-form-45 input.wpforms-field-medium,
#wpforms-form-45 #wpforms-45-field_1,
#wpforms-form-45 #wpforms-45-field_2,
#wpforms-form-45 #wpforms-45-field_3,
#wpforms-form-45 input[type="text"],
#wpforms-form-45 input[type="email"]{
  background:#0a0a0a!important;
  border:1px solid rgba(220,38,38,0.08)!important;
  border-radius:12px!important;
  padding:16px 20px!important;
  color:#e8e8e8!important;
  font-size:14px!important;
  font-family:var(--font-body)!important;
  transition:border-color .3s!important;
  outline:none!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  line-height:1.4!important;
  box-shadow:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important
}

/* Textarea — Správa */
#wpforms-form-45 #wpforms-45-field_4,
#wpforms-form-45 textarea.wpforms-field-large,
#wpforms-form-45 textarea{
  background:#0a0a0a!important;
  border:1px solid rgba(220,38,38,0.08)!important;
  border-radius:12px!important;
  padding:16px 20px!important;
  color:#e8e8e8!important;
  font-size:14px!important;
  font-family:var(--font-body)!important;
  transition:border-color .3s!important;
  outline:none!important;
  width:100%!important;
  max-width:100%!important;
  min-height:120px!important;
  resize:vertical!important;
  box-shadow:none!important;
  line-height:1.6!important;
  -webkit-appearance:none!important
}

/* Focus states */
#wpforms-form-45 input:focus,
#wpforms-form-45 textarea:focus{
  border-color:rgba(220,38,38,0.35)!important;
  box-shadow:0 0 0 1px rgba(220,38,38,0.1)!important
}

/* Placeholders */
#wpforms-form-45 input::placeholder,
#wpforms-form-45 textarea::placeholder{color:#333!important}

/* Submit container */
#wpforms-form-45 .wpforms-submit-container{
  padding:4px 0 0!important;
  margin:0!important;
  text-align:left!important
}

/* Submit button */
#wpforms-form-45 .wpforms-submit,
#wpforms-form-45 #wpforms-submit-45,
#wpforms-form-45 button[type="submit"]{
  background:var(--red)!important;
  color:#fff!important;
  padding:16px 32px!important;
  border-radius:12px!important;
  font-size:15px!important;
  font-weight:500!important;
  cursor:pointer!important;
  border:none!important;
  font-family:var(--font-body)!important;
  transition:all .3s!important;
  width:100%!important;
  text-transform:none!important;
  letter-spacing:0!important;
  line-height:1.4!important;
  box-shadow:none!important;
  -webkit-appearance:none!important
}
#wpforms-form-45 .wpforms-submit:hover,
#wpforms-form-45 #wpforms-submit-45:hover,
#wpforms-form-45 button[type="submit"]:hover{
  background:var(--red-hover)!important;
  box-shadow:0 4px 24px rgba(220,38,38,0.2)!important
}

/* Loading spinner */
#wpforms-form-45 .wpforms-submit-spinner{display:none!important}

/* Validation errors */
#wpforms-form-45 .wpforms-error,
#wpforms-form-45 label.wpforms-error{
  color:var(--red)!important;
  font-size:12px!important;
  font-family:var(--font-body)!important;
  margin-top:6px!important;
  background:none!important;
  border:none!important;
  padding:0!important
}
#wpforms-form-45 .wpforms-field.wpforms-has-error input,
#wpforms-form-45 .wpforms-field.wpforms-has-error textarea{
  border-color:var(--red)!important
}

/* Success confirmation */
#wpforms-form-45 .wpforms-confirmation-container-full,
.wpforms-confirmation-container-full{
  background:#0a0a0a!important;
  border:1px solid rgba(220,38,38,0.15)!important;
  border-radius:12px!important;
  color:#e8e8e8!important;
  padding:24px!important;
  font-family:var(--font-body)!important
}

/* Noscript message */
#wpforms-form-45 .wpforms-error-noscript,
#wpforms-form-45 #wpforms-error-noscript{
  color:#888!important;
  font-family:var(--font-body)!important
}

/* Kill all WPForms default box shadows & borders */
#wpforms-form-45 *{box-shadow:none!important}
div[id^="wpforms-"] .wpforms-form{background:none!important;border:none!important;padding:0!important;margin:0!important}
