/* ===============================
   App Turtles - Main Stylesheet
   Professional Corporate Theme
================================= */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===============================
   Root Variables
================================= */
:root {
  --primary: #0f172a;          /* Deep Navy */
  --secondary: #1e293b;        /* Slightly lighter navy */
  --accent: #0ea5a4;           /* Teal */
  --accent-dark: #0c8a89;
  --light: #f8fafc;
  --gray: #94a3b8;
  --dark-gray: #334155;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --transition: all 0.3s ease;
}

/* ===============================
   Global Reset
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--primary);
  line-height: 1.6;
}

/* ===============================
   Container
================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   Headings
================================= */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title span {
  color: var(--accent);
}

/* ===============================
   Buttons
================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===============================
   Navbar
================================= */
header {
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.navbar img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ===============================
   Hero Section
================================= */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--white);
  padding: 140px 0 100px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-text p {
  margin-bottom: 30px;
  color: #cbd5e1;
}

.hero img {
  width: 100%;
  max-width: 500px;
}

/* ===============================
   Cards (Services / Products)
================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 60px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
}

/* ===============================
   About Section
================================= */
.about {
  padding: 100px 0;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius);
}

/* ===============================
   CTA Section
================================= */
.cta {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

/* ===============================
   Footer
================================= */
footer {
  background: var(--primary);
  color: var(--gray);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

footer a {
  display: block;
  text-decoration: none;
  color: var(--gray);
  margin-bottom: 10px;
  transition: var(--transition);
}

footer a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--dark-gray);
  padding-top: 20px;
  font-size: 0.9rem;
}

/* ===============================
   Scroll To Top Button
================================= */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow);
}

#scrollTopBtn:hover {
  background: var(--accent-dark);
}

/* ===============================
   Section Spacing
================================= */
section {
  padding: 100px 0;
}

/* ===============================
   Page Banner
================================= */
.page-banner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--white);
  padding: 140px 0 80px;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  margin: 15px 0;
}

.page-banner p {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

/* ===============================
   Stats Section
================================= */
.stats-section {
  background: var(--primary);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-box {
  padding: 30px 20px;
}

.stat-box p {
  color: var(--gray);
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ===============================
   Why Grid
================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-box {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.why-box:hover {
  transform: translateY(-8px);
}

.why-icon {
  margin-bottom: 20px;
}

.why-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.why-box h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* ===============================
   Tech Stack
================================= */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.tech-item {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===============================
   Process Steps
================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.process-step {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 15px;
  right: 20px;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 15px;
  position: relative;
}

.process-step p {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* ===============================
   Service List
================================= */
.service-list {
  list-style: none;
  margin-top: 15px;
  padding: 0;
}

.service-list li {
  color: var(--dark-gray);
  font-size: 0.9rem;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ===============================
   Products Section
================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 25px;
}

.product-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(14,165,164,0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-info h3 {
  margin-bottom: 12px;
}

.product-info p {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-tech span {
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-actions .btn {
  font-size: 0.85rem;
  padding: 9px 20px;
}

/* ===============================
   Team Section
================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-img {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f1f5f9;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  background: rgba(14,165,164,0.9);
  transition: var(--transition);
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--white);
  color: var(--accent);
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  margin-bottom: 5px;
}

.team-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.team-info p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* ===============================
   Privacy Content
================================= */
.privacy-content {
  max-width: 800px;
  margin: auto;
  padding: 40px 0;
}

.privacy-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.privacy-block h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.privacy-block p {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 10px;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.privacy-list li {
  color: var(--dark-gray);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.privacy-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-info {
  background: #f1f5f9;
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 15px;
  line-height: 1.8;
  color: var(--dark-gray);
}

/* ===============================
   404 Error Section
================================= */
.error-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.15;
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.error-content p {
  color: var(--dark-gray);
  max-width: 500px;
  margin: auto;
  margin-bottom: 30px;
}

.error-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===============================
   Card Icon (About Page)
================================= */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* ===============================
   Footer Social
================================= */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  color: var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===============================
   Responsive Additions
================================= */
@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 5rem;
  }
}

/* Built-in icon replacements */
.why-icon,
.service-icon,
.card-icon-plain {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
}

.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
}

.product-logo-box {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.product-logo-box span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.playstore-icon svg {
  width: 74px;
  height: 74px;
  display: block;
}