/* ========================================
   TechApp Agency — Modern Professional Theme
   ======================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #475569;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

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

/* ============ HEADER / NAVBAR ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
}
.nav-menu a:hover { color: var(--primary); }
.btn-nav {
  background: var(--gradient);
  color: white !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: white !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: white; }
.btn-outline {
  background: white;
  color: var(--dark);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}
.hero-feature::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.hero-visual {
  position: relative;
}
.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-card-title {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.hero-stat {
  background: var(--gray-50);
  padding: 18px;
  border-radius: var(--radius);
  text-align: center;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}
.hero-projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-project {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.hero-project-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-project-info { flex: 1; }
.hero-project-name { font-weight: 600; font-size: 14px; }
.hero-project-meta { font-size: 12px; color: var(--gray-500); }
.hero-project-status {
  background: var(--success);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* ============ APPS / FEATURED LINKS ============ */
.apps-section {
  padding: 80px 0;
  background: var(--white);
}

/* ============ GAMES DOWNLOAD LIST ============ */
.games-list-section {
  padding: 50px 0 30px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--gray-100);
}
.games-list-head {
  text-align: center;
  margin-bottom: 28px;
}
.games-list-head .section-tag {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.games-list-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.games-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}
.games-list li {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}
.games-list li:last-child {
  margin-bottom: 0;
}
.game-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.game-link-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  color: var(--dark);
}
.game-link-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.game-link-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: white;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}
.game-link-item:hover .game-link-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}
.game-link-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .games-list-section { padding: 30px 0 20px; }
  .games-list-head h2 { font-size: 22px; }
  .game-link-item { padding: 10px 12px; gap: 10px; border-radius: 12px; }
  .game-link-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .game-link-text { font-size: 14px; text-align: left; }
  .game-link-btn { padding: 7px 12px; font-size: 12px; }
  .game-link-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 380px) {
  .game-link-btn span,
  .game-link-btn { font-size: 0; padding: 8px; }
  .game-link-btn svg { width: 16px; height: 16px; font-size: 16px; }
}
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.app-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.app-info { flex: 1; min-width: 0; }
.app-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-category {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.app-btn {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.app-btn:hover { background: var(--primary); color: white; }

/* ============ SERVICES ============ */
.services-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.service-desc {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ PROCESS ============ */
.process-section {
  padding: 80px 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.process-card {
  text-align: center;
  padding: 28px;
  position: relative;
}
.process-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 12px;
}
.process-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.process-desc {
  color: var(--gray-500);
  font-size: 14px;
}

/* ============ PORTFOLIO ============ */
.portfolio-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.portfolio-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.portfolio-img {
  height: 180px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-body { padding: 22px; }
.portfolio-cat {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.portfolio-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.portfolio-desc {
  color: var(--gray-500);
  font-size: 14px;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  padding: 80px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 16px;
}
.testimonial-text {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.testimonial-name { font-weight: 700; color: var(--dark); }
.testimonial-loc { font-size: 13px; color: var(--gray-500); }

/* ============ CTA ============ */
.cta-section {
  padding: 80px 0;
  background: var(--gradient);
  text-align: center;
  color: white;
}
.cta-section .section-title { color: white; }
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}
.cta-section .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
.cta-section .btn-outline:hover { background: white; color: var(--primary); }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p {
  color: var(--gray-300);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-300); font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: var(--gray-500);
}

/* ============ STATIC PAGES ============ */
.page-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.page-header p { color: var(--gray-700); font-size: 17px; }

.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 26px;
  margin: 32px 0 16px;
  color: var(--dark);
}
.page-content h3 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: var(--dark);
}
.page-content p { margin-bottom: 16px; color: var(--gray-700); }
.page-content ul { margin: 16px 0 16px 24px; color: var(--gray-700); }
.page-content li { margin-bottom: 8px; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 40px;
}
.contact-info-card {
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius-lg);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 14px; color: var(--gray-500); margin-bottom: 2px; font-weight: 600; }
.contact-info-item p { color: var(--dark); font-weight: 600; }
.contact-form { background: white; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--dark); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Flash messages */
.flash {
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* Channel Float Button */
.channel-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-channel 2s infinite;
}
.channel-float:hover {
  transform: scale(1.1);
  color: white;
  animation: none;
}
@keyframes pulse-channel {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45); }
  50% { box-shadow: 0 4px 30px rgba(37, 99, 235, 0.7), 0 0 0 12px rgba(37, 99, 235, 0.1); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  .nav-menu.active { transform: translateY(0); }
  .mobile-toggle { display: block; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
}
