/*
Theme Name: ThinkAIWorks
Theme URI: https://thinkaiworks.com
Author: ThinkAIWorks
Description: ThinkAIWorks AI Agency WordPress Theme with full Elementor support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thinkaiworks
Tags: elementor, full-site-editing, one-page, business, ai
*/

/* ==========================================
   THINKAIWORKS THEME — GLOBAL RESET & BASE
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050816;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Remove default WP margins when Elementor is active */
body.elementor-page .site-header,
body.elementor-page .site-footer {
  display: none !important;
}

/* ==========================================
   BACKGROUND FIXED LAYER
   ========================================== */

.taw-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.taw-bg-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.25), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.15), transparent 25%);
}

.taw-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.taw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.4);
}

.taw-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.taw-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}

.taw-logo span {
  color: #3b82f6;
}

.taw-nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  list-style: none;
}

.taw-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.taw-nav-links a:hover {
  color: #ffffff;
}

/* ==========================================
   BUTTONS
   ========================================== */

.taw-btn-blue {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(37,99,235,0.4);
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}

.taw-btn-blue:hover {
  background: #3b82f6;
  color: #ffffff;
}

.taw-btn-blue-lg {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(37,99,235,0.45);
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}

.taw-btn-blue-lg:hover {
  background: #3b82f6;
  color: #ffffff;
}

.taw-btn-blue-xl {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 18px 32px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 50px rgba(37,99,235,0.45);
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}

.taw-btn-blue-xl:hover {
  background: #3b82f6;
  color: #ffffff;
}

.taw-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.taw-btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}

.taw-btn-outline-xl {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 18px 32px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.taw-btn-outline-xl:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.taw-hero {
  position: relative;
  z-index: 1;
}

.taw-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.taw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(59,130,246,0.2);
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.taw-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: #ffffff;
}

.taw-gradient-text {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.taw-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
}

.taw-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

/* Stats */
.taw-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 56px;
}

.taw-stat-num {
  font-size: 30px;
  font-weight: 900;
  color: #60a5fa;
}

.taw-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* Dashboard widget */
.taw-dashboard {
  position: relative;
}

.taw-dashboard-glow {
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,0.2);
  filter: blur(48px);
  border-radius: 50%;
}

.taw-dashboard-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 24px;
}

.taw-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.taw-dash-title-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.taw-dash-title {
  font-size: 19px;
  font-weight: 700;
  margin-top: 4px;
}

.taw-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  animation: tawPulse 1.5s infinite;
}

@keyframes tawPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.6; transform:scale(1.1); }
}

.taw-workflow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.taw-workflow-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.taw-step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.taw-step-title {
  font-weight: 500;
  font-size: 14px;
}

.taw-step-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.taw-completed {
  color: #4ade80;
  font-size: 13px;
}

/* ==========================================
   TRUSTED / LOGOS SECTION
   ========================================== */

.taw-trusted {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  padding: 36px 0;
}

.taw-trusted-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.taw-trusted-label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.taw-trusted-logos {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 24px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 17px;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.taw-services {
  position: relative;
  z-index: 1;
}

.taw-services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.taw-section-label {
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  margin-bottom: 18px;
}

.taw-section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.taw-section-desc {
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  line-height: 1.8;
}

.taw-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.taw-services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.taw-service-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.2s;
  cursor: pointer;
}

.taw-service-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(59,130,246,0.3);
}

.taw-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 22px;
  font-weight: 700;
}

.taw-service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  transition: color 0.2s;
  color: #ffffff;
}

.taw-service-card:hover .taw-service-title {
  color: #60a5fa;
}

.taw-service-desc {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 15px;
}

/* ==========================================
   CASE STUDIES SECTION
   ========================================== */

.taw-case-studies {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.taw-cs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.taw-cs-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.taw-cs-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.taw-cs-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  border-radius: 24px;
  padding: 32px;
}

.taw-cs-num {
  font-size: 28px;
  font-weight: 900;
  color: #60a5fa;
  margin-bottom: 20px;
}

.taw-cs-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.taw-cs-desc {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 15px;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */

.taw-process {
  position: relative;
  z-index: 1;
}

.taw-process-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.taw-process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}

.taw-process-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
}

.taw-process-num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(37,99,235,0.2);
  margin-bottom: 36px;
}

.taw-process-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.taw-process-desc {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 15px;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.taw-cta {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  overflow: hidden;
}

.taw-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 50%);
  pointer-events: none;
}

.taw-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.taw-cta-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  color: #ffffff;
}

.taw-cta-desc {
  font-size: 19px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 44px;
}

.taw-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ==========================================
   FOOTER
   ========================================== */

.taw-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 36px 24px;
}

.taw-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.taw-footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.taw-footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.taw-footer-links a:hover {
  color: #ffffff;
}

.taw-footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ==========================================
   FLOATING BUTTON
   ========================================== */

.taw-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(37,99,235,0.5);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.taw-floating-btn:hover {
  background: #3b82f6;
  color: #ffffff;
}

/* ==========================================
   ELEMENTOR WIDGET WRAPPERS
   ========================================== */

.elementor-widget-taw-hero .elementor-widget-container,
.elementor-widget-taw-trusted .elementor-widget-container,
.elementor-widget-taw-services .elementor-widget-container,
.elementor-widget-taw-case-studies .elementor-widget-container,
.elementor-widget-taw-process .elementor-widget-container,
.elementor-widget-taw-cta .elementor-widget-container,
.elementor-widget-taw-footer .elementor-widget-container {
  background: transparent;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .taw-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 20px;
  }

  .taw-services-grid,
  .taw-cs-grid,
  .taw-process-grid {
    grid-template-columns: 1fr;
  }

  .taw-trusted-logos {
    grid-template-columns: repeat(3,1fr);
  }

  .taw-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .taw-nav-links {
    display: none;
  }

  .taw-cs-top {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .taw-trusted-logos {
    grid-template-columns: repeat(2,1fr);
  }

  .taw-stats {
    grid-template-columns: repeat(2,1fr);
  }
}
