/*
Theme Name: The Pixslate 2026
Theme URI: https://thepixslate.com
Author: The Pixslate
Description: Professional WordPress Theme
Version: 1.0.0
License: GPL v2 or later
Text Domain: the-pixslate-2026
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ===== CSS VARIABLES (COLORS) ===== */
:root {
  --primary-blue: #3B82F6;
  --primary-teal: #14B8A6;
  --dark-blue: #0f3460;
  --dark-navy: #050816;
  --light-bg: #f5f5f7;
  --white: #ffffff;
  --text-dark: #050816;
  --text-gray: #666666;
  --border-light: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* ===== HEADINGS & TEXT ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-teal);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  animation: slideInUp 0.6s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--text-dark);
  color: white;
  box-shadow: 0 5px 15px rgba(5, 8, 22, 0.2);
}

.btn-secondary:hover {
  background-color: var(--dark-navy);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
}

/* ===== CARD ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideInDown 0.6s ease-out;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal));
  transition: width 0.3s ease;
}

nav a:hover:after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-gradient {
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #4facfe 75%, 
    #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  width: 100%;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 52, 96, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.8s ease-out 0.5s both;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD700;
  display: block;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: transparent;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 0.8s ease-out;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 4rem;
  font-size: 1.1rem;
  animation: slideInUp 0.8s ease-out;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-blue);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary-blue);
}

.service-description {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.service-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--primary-teal);
  transform: translateX(5px);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 50%, 
    #f093fb 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  animation: slideInUp 0.8s ease-out;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideInDown 0.6s ease-out;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 6rem 2rem;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  animation: slideInUp 0.6s ease-out;
}

.blog-post:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.blog-featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: transform 0.4s ease;
}

.blog-post:hover .blog-featured-image {
  transform: scale(1.05);
}

.blog-content {
  padding: 2rem;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-post:hover .blog-title {
  color: var(--primary-blue);
}

.blog-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-meta {
  color: #999;
  font-size: 0.85rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border-left: 4px solid var(--primary-blue);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-teal);
}

.stars {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

details:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

details summary {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  outline: none;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

details summary:hover {
  color: var(--primary-blue);
}

details[open] summary {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

details[open] {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}

details > div {
  color: var(--text-gray);
  line-height: 1.8;
  margin-top: 1rem;
  animation: slideInUp 0.3s ease-out;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--dark-navy), var(--dark-blue));
  color: white;
  padding: 3rem 2rem 1rem;
  text-align: center;
}

footer a {
  color: var(--primary-teal);
  transition: color 0.3s ease;
}

footer a:hover {
  color: #FFD700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 2rem; }
  
  .container { padding: 0 1rem; }
  
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  
  nav ul { gap: 1rem; }
  .btn { padding: 10px 20px; font-size: 0.95rem; }
  
  .cta-section::before {
    width: 300px;
    height: 300px;
    right: -50%;
  }
}
