/*
Theme Name: TechnoServices Modern
Theme URI: https://www.technoservices.us
Author: TechnoServices
Author URI: https://www.technoservices.us
Description: Modern enterprise IT services theme with logo intro animation, bilingual support, and Gutenberg page editing.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: technoservices
*/

/* ===== VARIABLES ===== */
:root {
  --bg:         #080C17;
  --bg2:        #0D1424;
  --card:       #111827;
  --border:     #1E2A3A;
  --primary:    #7C3AED;
  --primary2:   #9F5FFF;
  --accent:     #06B6D4;
  --accent2:    #22D3EE;
  --text:       #E2E8F0;
  --muted:      #94A3B8;
  --white:      #FFFFFF;
  --grad:       linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --grad-card:  linear-gradient(160deg, #111827 0%, #0D1424 100%);
  --font-h:     'Plus Jakarta Sans', sans-serif;
  --font-b:     'Inter', sans-serif;
  --r:          16px;
  --rs:         10px;
  --shadow:     0 8px 32px rgba(124,58,237,0.18);
  --t:          0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent2); }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: 100px 0; }
h1,h2,h3,h4,h5 { font-family: var(--font-h); line-height: 1.2; color: var(--white); }

/* ===== LOGO SPLASH ===== */
#logo-splash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 1s ease, visibility 1s ease;
}
#logo-splash.splash-hide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
/* Video logo principal */
#splash-video {
  display: block;
  width: clamp(240px, 44vw, 480px) !important;
  max-width: 90vw !important;
  height: auto !important;
  animation: splGlow 2s ease-in-out infinite;
}
/* Fallback imagen */
#splash-img {
  display: none;
  width: clamp(240px, 44vw, 480px) !important;
  max-width: 90vw !important;
  height: auto !important;
  animation: splGlow 2s ease-in-out infinite;
}
/* Fallback texto */
#splash-text-fb {
  display: none;
  font-family: var(--font-h);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  animation: splGlow 2s ease-in-out infinite;
}
#logo-splash .splash-tagline {
  font-family: var(--font-h);
  font-size: clamp(0.85rem, 1.8vw, 1.25rem);
  color: var(--muted);
  letter-spacing: 0.07em;
  text-align: center;
  padding: 0 20px;
}
#logo-splash .splash-bar {
  width: 220px; height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
#logo-splash .splash-fill {
  height: 100%; width: 0;
  background: var(--grad);
  border-radius: 99px;
  animation: splFill 2.8s ease forwards;
}
#logo-splash .splash-skip {
  position: absolute;
  bottom: 32px; right: 40px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 99px;
  transition: all var(--t);
  user-select: none;
}
#logo-splash .splash-skip:hover {
  color: var(--white);
  border-color: var(--primary);
  background: rgba(124,58,237,.15);
}

@keyframes splGlow {
  0%,100% { filter: drop-shadow(0 0 14px rgba(124,58,237,.55)); }
  50%      { filter: drop-shadow(0 0 48px rgba(124,58,237,1)) drop-shadow(0 0 90px rgba(6,182,212,.5)); }
}
@keyframes splFill { 0%{ width:0 } 100%{ width:100% } }

/* ===== HEADER ===== */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all var(--t); }
#site-header.scrolled { background: rgba(8,12,23,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 12px 0; box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-size: 1.4rem; font-weight: 800; color: var(--white); }
.site-logo video, .site-logo img { height: 42px; width: auto; }
.site-logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a { color: var(--muted); font-size: 0.88rem; font-weight: 500; padding: 8px 16px; border-radius: 99px; transition: all var(--t); }
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.lang-toggle { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.lang-toggle a { color: var(--muted); padding: 4px 8px; border-radius: 6px; transition: all var(--t); }
.lang-toggle a.active, .lang-toggle a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 99px; font-family: var(--font-h); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--t); border: none; outline: none; }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 4px 20px rgba(124,58,237,.4); }
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,.6); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--border); }
.btn-outline:hover { color: var(--white); border-color: var(--primary); background: rgba(124,58,237,.12); }
.btn-white { background: var(--white); color: var(--primary); font-weight: 700; }
.btn-white:hover { color: var(--primary); transform: translateY(-2px); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 1001; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--t); }

/* ===== HERO ===== */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 130px 0 80px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.22; pointer-events: none; }
.orb1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -150px; }
.orb2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); padding: 7px 18px; border-radius: 99px; font-size: 0.82rem; color: var(--primary2); font-weight: 600; margin-bottom: 22px; }
.hero-title { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 900; line-height: 1.1; margin-bottom: 22px; }
.hero-title .grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.07rem; color: var(--muted); max-width: 520px; margin-bottom: 38px; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-h); font-size: 2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.77rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-visual { position: relative; }
.hero-img-box { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.hero-img-box img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-img-box::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(124,58,237,.3) 0%, transparent 60%); z-index: 1; }
.hero-chip { position: absolute; background: rgba(17,24,39,.95); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--rs); padding: 12px 18px; font-size: 0.82rem; font-weight: 600; color: var(--white); white-space: nowrap; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.hero-chip.c1 { bottom: -18px; left: -18px; }
.hero-chip.c2 { top: -18px; right: -18px; }
.hero-chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-right: 7px; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===== SECTION COMMON ===== */
.sec-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.77rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }
.sec-label::before { content: ''; display: block; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-title { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; margin-bottom: 18px; }
.sec-desc { color: var(--muted); max-width: 560px; line-height: 1.8; font-size: 1.02rem; }

/* ===== SERVICES ===== */
#services { background: var(--bg2); position: relative; overflow: hidden; }
#services::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(124,58,237,.05) 0%, transparent 70%); pointer-events: none; }
.services-head { text-align: center; margin-bottom: 60px; }
.services-head .sec-label { justify-content: center; }
.services-head .sec-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.svc-card { background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: all var(--t); }
.svc-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 20px 60px rgba(124,58,237,.2); }
.svc-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.svc-img { position: relative; height: 210px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--card) 100%); }
.svc-badge { position: absolute; top: 14px; right: 14px; background: var(--grad); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.06em; }
.svc-body { padding: 26px; }
.svc-body h3 { font-size: 1.2rem; margin-bottom: 10px; transition: color var(--t); }
.svc-card:hover .svc-body h3 { color: var(--accent); }
.svc-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 18px; }
.svc-link { font-size: 0.88rem; font-weight: 600; color: var(--primary2); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--t); }
.svc-card:hover .svc-link { gap: 10px; }
.svc-cta { margin-top: 60px; background: var(--grad); border-radius: var(--r); padding: 44px 52px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.svc-cta h3 { font-size: 1.55rem; margin-bottom: 6px; }
.svc-cta p { color: rgba(255,255,255,.8); }

/* ===== SUPPORT ===== */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.support-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.sf { background: var(--card); border: 1px solid var(--border); border-radius: var(--rs); padding: 22px; transition: all var(--t); }
.sf:hover { border-color: var(--primary); background: rgba(124,58,237,.08); }
.sf-icon { font-size: 1.7rem; margin-bottom: 10px; display: block; }
.sf h4 { font-size: 0.93rem; margin-bottom: 7px; }
.sf p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.met { text-align: center; padding: 28px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); position: relative; overflow: hidden; }
.met::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.met-num { font-family: var(--font-h); font-size: 2.2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.met-label { font-size: 0.77rem; color: var(--muted); margin-top: 4px; }
.partners-bar { background: var(--bg2); padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.partners-label { text-align: center; font-size: 0.77rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 24px; }
.marquee-track { display: flex; gap: 64px; align-items: center; animation: marquee 22s linear infinite; width: max-content; }
.p-name { font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; color: var(--muted); opacity: 0.55; white-space: nowrap; transition: opacity var(--t); }
.p-name:hover { opacity: 1; color: var(--white); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== NEWSLETTER ===== */
#newsletter { background: var(--bg2); }
.nl-inner { background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r); padding: 80px; text-align: center; position: relative; overflow: hidden; }
.nl-inner::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,.18), transparent 70%); pointer-events: none; }
.nl-inner .sec-label { justify-content: center; }
.nl-inner h2 { margin-bottom: 14px; }
.nl-inner .sec-desc { margin: 0 auto 38px; }
.nl-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto 14px; position: relative; }
.nl-form input { flex: 1; padding: 14px 20px; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 99px; color: var(--white); font-family: var(--font-b); font-size: 0.92rem; outline: none; transition: border-color var(--t); }
.nl-form input::placeholder { color: var(--muted); }
.nl-form input:focus { border-color: var(--primary); }
.nl-note { font-size: 0.78rem; color: var(--muted); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info .sec-desc { margin-bottom: 36px; }
.c-details { display: flex; flex-direction: column; gap: 16px; }
.c-detail { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--rs); transition: all var(--t); }
.c-detail:hover { border-color: var(--primary); }
.c-icon { width: 42px; height: 42px; background: var(--grad); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.c-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 3px; }
.c-detail a, .c-detail span { color: var(--white); font-weight: 600; font-size: 0.93rem; }
.c-detail a:hover { color: var(--accent); }
.cf-card { background: var(--grad-card); border: 1px solid var(--border); border-radius: var(--r); padding: 44px; }
.cf-card h3 { margin-bottom: 28px; font-size: 1.45rem; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fi { display: flex; flex-direction: column; gap: 7px; }
.fi.full { grid-column: 1 / -1; }
.fi label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fi input, .fi select, .fi textarea { padding: 13px 17px; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: var(--rs); color: var(--white); font-family: var(--font-b); font-size: 0.93rem; outline: none; transition: all var(--t); width: 100%; }
.fi input::placeholder, .fi textarea::placeholder { color: rgba(148,163,184,.45); }
.fi input:focus, .fi select:focus, .fi textarea:focus { border-color: var(--primary); background: rgba(124,58,237,.07); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.fi select { appearance: none; cursor: pointer; }
.fi select option { background: #111827; color: var(--white); }
.fi textarea { resize: vertical; min-height: 120px; }
.f-submit { margin-top: 8px; width: 100%; justify-content: center; font-size: 0.97rem; padding: 15px; }
.f-msg { padding: 13px 18px; border-radius: var(--rs); font-size: 0.88rem; margin-top: 14px; display: none; }
.f-msg.ok { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.3); color: #4ADE80; display: block; }
.f-msg.err { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); color: #F87171; display: block; }

/* ===== FOOTER ===== */
#site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 44px; margin-bottom: 52px; }
.fb-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.75; margin: 18px 0 24px; max-width: 280px; }
.socials { display: flex; gap: 10px; }
.soc { width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.88rem; transition: all var(--t); }
.soc:hover { color: var(--white); border-color: var(--primary); background: rgba(124,58,237,.15); }
.fc h4 { font-size: 0.87rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.fc ul { display: flex; flex-direction: column; gap: 10px; }
.fc ul a { color: var(--muted); font-size: 0.88rem; transition: color var(--t); }
.fc ul a:hover { color: var(--white); }
.fci { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.fci-icon { width: 33px; height: 33px; background: rgba(124,58,237,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.88rem; flex-shrink: 0; }
.fci a, .fci span { color: var(--muted); font-size: 0.86rem; transition: color var(--t); }
.fci a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-bottom p, .footer-bottom a { font-size: 0.83rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }
.fbl { display: flex; gap: 22px; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar{width:5px} ::-webkit-scrollbar-track{background:var(--bg)} ::-webkit-scrollbar-thumb{background:var(--primary);border-radius:3px}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .support-grid,.contact-grid{grid-template-columns:1fr;gap:48px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  section{padding:70px 0}
  .hero-grid{grid-template-columns:1fr}
  .hero-visual,.header-cta,.lang-toggle{display:none}
  .services-grid{grid-template-columns:1fr}
  .support-feats,.metrics,.fg{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .nl-inner{padding:44px 24px}
  .nl-form{flex-direction:column}
  .cf-card{padding:26px}
  .svc-cta{padding:32px 24px;text-align:center;justify-content:center}
  .nav-menu{display:none;position:fixed;inset:0;background:rgba(8,12,23,.98);backdrop-filter:blur(20px);flex-direction:column;align-items:center;justify-content:center;gap:24px;z-index:999}
  .nav-menu.open{display:flex}
  .nav-menu a{font-size:1.4rem}
  .menu-toggle{display:flex}
}
