/*
Theme Name: Resident Data Scientist
Theme URI: https://residentdatascientist.com
Description: Professional single-page WordPress theme for AI & data science consulting for SMBs
Version: 1.0.0
Author: Resident Data Scientist
Author URI: https://residentdatascientist.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resident-data-scientist
Domain Path: /languages

This theme is built for SEO, GEO, and AEO optimization with full schema markup,
accessibility compliance, and mobile responsiveness.
*/

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #0f172a;
  --primary-light: #1e3a8a;
  --primary-lighter: #3b82f6;
  --secondary-color: #0ea5e9;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1), 0 4px 6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.1), 0 8px 12px rgba(15, 23, 42, 0.04);
  --shadow-2xl: 0 25px 50px rgba(15, 23, 42, 0.15);
}

* {
  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: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-family: 'Figtree', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

p strong {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: var(--primary-lighter);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

a:hover {
  color: var(--secondary-color);
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section h2 {
  animation: slideInUp 0.6s ease-out;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-light) 0%, rgba(248, 250, 252, 0.5) 100%);
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
}

.logo img {
  height: 65px;
  width: auto;
}

.logo:hover {
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-lighter), var(--secondary-color));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-lighter);
}

nav a:hover::before {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  color: white;
  padding: 5rem 0 6rem 0;
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 58, 138, 0.75) 50%, rgba(14, 165, 233, 0.65) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 600"><path d="M0,300 Q480,250 960,300 T1920,300 L1920,600 L0,600 Z" fill="white" opacity="0.02"/></svg>');
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.875rem 2.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
  text-decoration: none;
  margin: 0 0.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  color: white;
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-lighter), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--primary-lighter);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-lighter), var(--secondary-color));
  border-radius: 0.75rem 0.75rem 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-top: 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-top: 0;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(14, 165, 233, 0.05));
  pointer-events: none;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Section */
.contact-form {
  max-width: 650px;
  margin: 3rem auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background-color: var(--bg-lighter);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-lighter);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: white;
  font-family: 'Figtree', sans-serif;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
  text-decoration: none;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Animations */
@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 float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
  display: none;
}

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

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.98);
  }

  .header-content {
    padding: 1rem 0;
  }

  .logo img {
    height: 50px;
  }

  .section {
    padding: 4rem 0;
  }

  .section-alt {
    padding: 4rem 0;
    background-color: var(--bg-light);
  }

  nav {
    display: none !important;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav ul li {
    font-size: 0.9rem;
  }

  .mobile-menu-toggle {
    display: block !important;
    z-index: 1000;
    padding: 0.5rem;
  }

  nav.mobile-hidden {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  nav.mobile-hidden.active {
    display: flex !important;
  }

  nav.mobile-hidden ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    width: 100%;
    list-style: none;
  }

  nav.mobile-hidden ul li {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  nav.mobile-hidden ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    border: none !important;
    text-decoration: none;
  }

  nav.mobile-hidden ul li a:hover {
    background-color: var(--bg-lighter);
    color: var(--primary-lighter);
  }

  nav.mobile-hidden ul li a::before {
    display: none !important;
  }

  nav.mobile-hidden ul li a.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-lighter);
    font-weight: 600;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.75rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 0.5rem;
  }

  .cta-button {
    display: block;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: block !important;
    padding: 0.5rem;
    z-index: 1000;
  }

  nav.mobile-hidden {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    max-height: 100vh;
  }

  nav.mobile-hidden ul li {
    border-bottom: 1px solid var(--border-color);
  }

  nav.mobile-hidden ul li a {
    padding: 1rem 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-alt {
    padding: 2.5rem 0;
    background-color: var(--bg-light);
  }

  .hero {
    padding: 3rem 0 4rem 0;
  }

  .logo img {
    height: 50px;
  }
}

/* Desktop nav visibility */
@media (min-width: 769px) {
  nav:not(.mobile-hidden) {
    display: block !important;
  }

  nav ul {
    display: flex !important;
    list-style: none;
    gap: 2.5rem;
  }

  nav ul li {
    display: list-item !important;
  }

  nav a {
    display: inline-block !important;
  }
}
