/*
Theme Name: Techtide Marketers
Theme URI: https://techtidemarketers.com
Author: Techtide Marketers
Author URI: https://techtidemarketers.com
Description: A premium, high-converting digital marketing agency theme for Techtide Marketers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techtide-marketers
Tags: dark, marketing, agency, one-page, custom-logo
*/

/* ============================
   CSS Variables & Base
   ============================ */
:root {
  --background: 0 0% 5%;
  --foreground: 0 0% 95%;
  --card: 0 0% 8%;
  --card-foreground: 0 0% 95%;
  --primary: 100 100% 45%;
  --primary-foreground: 0 0% 5%;
  --secondary: 0 0% 12%;
  --secondary-foreground: 0 0% 95%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 60%;
  --accent: 100 100% 45%;
  --border: 0 0% 18%;
  --destructive: 0 84.2% 60.2%;
  --radius: 0.5rem;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================
   Utilities
   ============================ */
.section-padding { padding: 5rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 7rem 2rem; } }

.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(120 100% 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-green { box-shadow: 0 0 30px hsl(100 100% 45% / 0.2); }

.bg-card { background-color: hsl(var(--card)); }
.bg-secondary-30 { background-color: hsl(var(--secondary) / 0.3); }
.border-default { border: 1px solid hsl(var(--border)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }

.btn-primary-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ============================
   Animations
   ============================ */
@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(15deg); opacity: 0; }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsl(100 100% 45% / 0.3); }
  50% { box-shadow: 0 0 40px hsl(100 100% 45% / 0.6); }
}

@keyframes pulse-slow-alt {
  0%, 100% { opacity: 1; transform: scale(1.05); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes draw-line {
  0% { stroke-dashoffset: 2000; }
  100% { stroke-dashoffset: 0; }
}

@keyframes draw-line-alt {
  0% { stroke-dashoffset: 2000; }
  100% { stroke-dashoffset: 0; }
}

@keyframes drift-horizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

.animate-float-up { animation: float-up 10s linear infinite; }
.animate-pulse-slow { animation: pulse-slow 6s ease-in-out infinite; }
.animate-pulse-slow-alt { animation: pulse-slow-alt 8s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-draw-line { stroke-dasharray: 2000; animation: draw-line 15s linear infinite; }
.animate-draw-line-alt { stroke-dasharray: 2000; animation: draw-line-alt 20s linear infinite; }
.animate-drift { animation: drift-horizontal 12s ease-in-out infinite; }

/* Floating Arrows */
.floating-arrow {
  position: absolute;
  pointer-events: none;
  color: hsl(var(--primary) / 0.04);
  animation: float-up linear infinite;
  bottom: -40px;
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.03;
  background-image: linear-gradient(hsl(100 100% 45%) 1px, transparent 1px), linear-gradient(90deg, hsl(100 100% 45%) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Chart lines background */
.chart-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.chart-lines svg { width: 100%; height: 8rem; color: hsl(var(--primary) / 0.04); }

/* Hover overlay for portfolio */
.hover-overlay { opacity: 0; transition: opacity 0.3s; }
.portfolio-card:hover .hover-overlay { opacity: 1; }

/* ============================
   Animated Backgrounds
   ============================ */
.section-bg {
  position: relative;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  background: hsl(var(--primary) / 0.04);
}
.glow-orb-1 { width: 24rem; height: 24rem; top: -5rem; left: -5rem; }
.glow-orb-2 { width: 18rem; height: 18rem; bottom: -2.5rem; right: -2.5rem; }

.floating-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.08);
  animation: float-up 10s linear infinite;
  bottom: -10px;
}

/* ============================
   Navbar
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}
.navbar-logo { height: 2.5rem; }
.navbar-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .navbar-links { display: flex; } }
.navbar-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.navbar-links a:hover { color: hsl(var(--primary)); }
.navbar-toggle { display: block; background: none; border: none; color: hsl(var(--foreground)); cursor: pointer; }
@media (min-width: 768px) { .navbar-toggle { display: none; } }

.mobile-menu {
  display: none;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================
   Hero Section
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, hsl(100 100% 45% / 0.08), transparent 50%);
}
.hero-content { max-width: 48rem; position: relative; z-index: 10; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: hsl(var(--primary));
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.hero p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin-bottom: 2rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 2.5rem;
}
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust-icon { color: hsl(var(--primary)); width: 16px; height: 16px; }

/* ============================
   Cards Grid
   ============================ */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: hsl(var(--primary) / 0.5); }

/* ============================
   Section Headers
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
.section-desc {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* ============================
   Portfolio
   ============================ */
.portfolio-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}
.portfolio-card:hover { border-color: hsl(var(--primary) / 0.5); }

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  height: 16rem;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: object-position 3s ease-in-out;
}
.portfolio-card:hover .portfolio-img-wrap img {
  object-position: bottom;
}
.portfolio-desc { padding: 1.25rem; }
.portfolio-desc p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

.portfolio-subsection-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.portfolio-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: hsl(var(--primary));
  border-radius: 50%;
  display: inline-block;
}

/* ============================
   Modal / Lightbox
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  max-width: 42rem;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.modal-scroll { overflow-y: auto; max-height: 75vh; }
.modal-desc {
  padding: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

/* ============================
   Process Steps
   ============================ */
.process-card {
  position: relative;
}
.process-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--primary) / 0.3);
}

/* ============================
   CTA Section
   ============================ */
.cta-box {
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.05));
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-box { padding: 4rem; } }

/* ============================
   Founder Section
   ============================ */
.founder-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: left;
}
@media (min-width: 768px) { .founder-card { padding: 3rem; } }
.founder-card p { color: hsl(var(--muted-foreground)); line-height: 1.8; margin-bottom: 1rem; }
.founder-divider {
  border-top: 1px solid hsl(var(--border));
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-logo { height: 2.5rem; margin-bottom: 1rem; }
.footer-text { font-size: 0.875rem; color: hsl(var(--muted-foreground)); max-width: 20rem; }
.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================
   Floating WhatsApp
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: #25D366;
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: pulse-glow 2s ease-in-out infinite;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ============================
   Problem Issues
   ============================ */
.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.issue-x {
  color: hsl(var(--destructive));
  margin-top: 0.125rem;
}

/* ============================
   Service Features
   ============================ */
.feature-dot {
  width: 6px;
  height: 6px;
  background: hsl(var(--primary));
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.375rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================
   Solution Icons
   ============================ */
.solution-icon-wrap {
  width: 4rem;
  height: 4rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.solution-icon-wrap svg { width: 28px; height: 28px; color: hsl(var(--primary)); }
