/* =====================================================
   Tech2Software – Dynamic Website Styles
   ===================================================== */

:root {
  --primary:     #046bd2;
  --primary-dark:#045cb4;
  --primary-light:#e8f2fd;
  --accent:      #00c6ff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --bg:          #ffffff;
  --bg-light:    #f0f5fa;
  --border:      #e2e8f0;
  --shadow-sm:   0 2px 8px rgba(4,107,210,0.08);
  --shadow-md:   0 8px 32px rgba(4,107,210,0.14);
  --shadow-lg:   0 20px 60px rgba(4,107,210,0.18);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 90px 0; }
.bg-light    { background: var(--bg-light); }

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(4,107,210,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(4,107,210,0.4);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-full { width: 100%; text-align: center; }

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dropdown-toggle .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-dropdown:hover .arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.dropdown-menu li a::after { display: none; }

@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary-light);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    display: none;
  }
  .dropdown-menu::before { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-t2 { color: var(--primary); }
.logo-sw  { color: var(--text); }

.navbar.scrolled .logo-sw { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}
.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:not(.btn-nav):hover::after { width: 100%; }
.nav-links a:not(.btn-nav):hover { color: var(--primary); }

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(4,107,210,0.3);
  transition: var(--transition);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(4,107,210,0.4); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0d2447 40%, #0f3060 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Animated background bubbles */
.hero-bg-anim { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,107,210,0.3), transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.b1 { width: 500px; height: 500px; top: -100px; left: -100px; animation-delay: 0s; }
.b2 { width: 350px; height: 350px; top: 30%; right: -80px; animation-delay: 2s; }
.b3 { width: 250px; height: 250px; bottom: 10%; left: 20%; animation-delay: 4s; }
.b4 { width: 200px; height: 200px; top: 60%; right: 25%; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(15px, -20px) scale(1.05); }
  66%       { transform: translate(-10px, 10px) scale(0.95); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}

.badge {
  display: inline-block;
  border: 1px solid rgba(4,107,210,0.5);
  background: rgba(4,107,210,0.15);
  color: #7ec8ff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, #4db6ff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-cta .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat > span:last-of-type { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 2px; }
.stat p { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 4px; }

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-center-circle {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(4,107,210,0.5);
  z-index: 2;
  animation: pulse 3s ease-in-out infinite;
}
.circle-inner {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(4,107,210,0.4); }
  50%       { box-shadow: 0 0 80px rgba(0,198,255,0.6); }
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  animation: orbit 10s linear infinite;
}
.hc-icon { font-size: 1.4rem; }
.hc1 { top: 30px;   left: 0;    animation-delay: 0s; }
.hc2 { top: 30px;   right: 0;   animation-delay: 3.3s; }
.hc3 { bottom: 30px; left: 50%; transform: translateX(-50%); animation-delay: 6.6s; }

@keyframes orbit {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hc3 { animation-name: orbit3; }
@keyframes orbit3 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.card-link { color: var(--primary); font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.card-link:hover { gap: 6px; letter-spacing: 0.5px; }

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.why-item {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.why-item:hover {
  background: var(--bg);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.why-icon { font-size: 2.2rem; margin-bottom: 14px; }
.why-item h4 { font-weight: 700; margin-bottom: 8px; }
.why-item p  { color: var(--text-muted); font-size: 0.9rem; }

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-card-wrap { position: relative; }
.about-img-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-inner { padding: 32px; }
.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-stack-tags span {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 2;
}
.big-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.about-badge-card span:last-child { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.about-text .section-tag { margin-bottom: 14px; }
.about-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}
.about-text p { color: var(--text-muted); margin-bottom: 14px; }
.about-list { margin: 24px 0 32px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.check {
  width: 22px; height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CLIENTS TICKER ===== */
.clients { overflow: hidden; }
.clients-ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 24px;
  animation: ticker 20s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.client-logo {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 32px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
  cursor: default;
}
.client-logo:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CONTACT ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.info-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.info-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item strong { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 3px; }
.info-item a, .info-item span { font-weight: 500; font-size: 0.95rem; color: var(--text); }
.info-item a:hover { color: var(--primary); }

.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Contact Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
input, select, textarea {
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4,107,210,0.1);
}
input.error, textarea.error { border-color: #ef4444; }
textarea { resize: vertical; min-height: 120px; }
.error-msg { color: #ef4444; font-size: 0.78rem; min-height: 16px; }
.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
}
.hidden { display: none; }

/* ===== FOOTER ===== */
.footer {
  background: #0a1628;
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 14px; display: block; }
.footer-brand .logo-t2 { color: #4db6ff; }
.footer-brand .logo-sw { color: #fff; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-links h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span {
  font-size: 0.88rem;
  transition: var(--transition);
  cursor: pointer;
}
.footer-links a:hover { color: #4db6ff; }

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== AOS ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="zoom-in"]    { transform: scale(0.85); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; text-align: center; }
  .hero-visual  { display: none; }
  .hero-stats   { justify-content: center; }
  .hero-cta     { justify-content: center; }
  .about-inner  { grid-template-columns: 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    bottom: 0;
    width: 280px;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 0 36px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-pad { padding: 60px 0; }
  .contact-form { padding: 24px 18px; }
}
