/* the top found - Modern CSS Framework */
/* System font stack, CSS variables, responsive design */

:root {
  /* Color Palette */
  --brand: #6D28D9;
  --brand-hover: #5B21B6;
  --accent: #22C55E;
  --accent-hover: #16A34A;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #0B1020;
  --surface: #F8FAFC;
  --surface-hover: #F1F5F9;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #0B1020;
  --ink: #F8FAFC;
  --ink-2: #CBD5E1;
  --ink-3: #94A3B8;
  --surface: #1E293B;
  --surface-hover: #334155;
  --border: #334155;
  --border-hover: #475569;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  transition: color var(--transition), background-color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--brand);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
  transition: var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 var(--space-6);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.nav > div:last-child {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo-img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-full);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--brand);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px; /* Touch target size */
}

.button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0);
}

.button--secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.button--secondary:hover {
  background: var(--brand);
  color: white;
}

.button--accent {
  background: var(--accent);
  color: white;
}

.button--accent:hover {
  background: var(--accent-hover);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--ink);
  transition: var(--transition);
  font-size: var(--font-size-lg);
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border-hover);
}

/* Hero Section */
.hero {
  padding: var(--space-20) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.2;
  color: var(--ink);
}

.hero p {
  font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-2xl));
  color: var(--ink-2);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Tech Badges */
.tech-badges {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.badge:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sections */
.section {
  padding: var(--space-20) 0;
}

.section h2 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--ink);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--brand);
}

.card p {
  color: var(--ink-2);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

/* Service Cards */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.service-content h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--brand);
  text-align: left;
}

.problem-solution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.problem-solution h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.deliverables,
.timeline {
  margin-bottom: var(--space-6);
}

.deliverables h3,
.timeline h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.deliverables ul {
  list-style: none;
  padding-left: 0;
}

.deliverables li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--ink-2);
}

.deliverables li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.timeline-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}

.tier {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  font-weight: 600;
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: var(--space-6);
}

.project-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--python {
  background: #3776AB;
  color: white;
}

.tag--flutter {
  background: #02569B;
  color: white;
}

.tag--react {
  background: #61DAFB;
  color: var(--ink);
}

.tag--cloud {
  background: #FF9900;
  color: white;
}

.tag--security {
  background: #DC2626;
  color: white;
}

.tag--data {
  background: #7C3AED;
  color: white;
}

.tag--compliance {
  background: #059669;
  color: white;
}

.tag--iot {
  background: #0891B2;
  color: white;
}

.tag--video {
  background: #EA580C;
  color: white;
}

.project-outcomes {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-4) 0;
  flex-wrap: wrap;
}

.outcome {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.outcome strong {
  display: block;
  font-size: var(--font-size-lg);
  color: var(--brand);
}

/* About Page Styles */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-section,
.process-section {
  margin-bottom: var(--space-16);
}

.principles-list {
  list-style: none;
  padding-left: 0;
}

.principles-list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--ink-2);
}

.principles-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--brand);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 auto var(--space-4);
}

.process-step h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.process-step p {
  color: var(--ink-2);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.team-member {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--border);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-role {
  color: var(--brand);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.member-bio {
  color: var(--ink-2);
  font-size: var(--font-size-sm);
}

/* Tech Stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.tech-category h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--ink);
  transition: var(--transition);
}

.tech-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

/* Contact Form */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.contact-method h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.contact-method p {
  color: var(--ink-2);
  margin-bottom: var(--space-1);
}

.contact-method a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-form h2 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--ink);
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--ink-2);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.error-message {
  color: #DC2626;
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
  display: none;
}

.error-message.show {
  display: block;
}

.thank-you-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.thank-you-message h2 {
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.faq-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.faq-item p {
  color: var(--ink-2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--ink-2);
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.modal-body {
  padding: var(--space-6);
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-12) 0 var(--space-4);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--bg);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2);
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  margin-bottom: var(--space-2);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--bg);
  text-decoration: underline;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--brand);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Focus Improvements */
*:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.button:focus,
.theme-toggle:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Better Form Styling */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #DC2626;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--accent);
}

/* Smooth Page Transitions */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Professional Stats Section */
.stats-professional {
  background: var(--bg);
  color: var(--ink);
  padding: var(--space-20) 0;
  position: relative;
}

.stats-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.stats-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.stats-header h2 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.stats-header p {
  font-size: var(--font-size-lg);
  color: var(--ink-2);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.stats-grid-professional {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-12);
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item-professional {
  text-align: center;
  padding: var(--space-10);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-item-professional:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.stat-item-professional:hover::before {
  transform: scaleX(1);
}

.stat-number-professional {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: var(--space-4);
  line-height: 1;
  transition: all 0.3s ease;
  display: block;
}

.stat-item-professional:hover .stat-number-professional {
  transform: scale(1.05);
  color: var(--brand-hover);
}

.stat-label-professional {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-3);
  transition: all 0.3s ease;
}

.stat-item-professional:hover .stat-label-professional {
  color: var(--brand);
}

.stat-description-professional {
  font-size: var(--font-size-base);
  color: var(--ink-2);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.stat-item-professional:hover .stat-description-professional {
  color: var(--ink);
}

/* Responsive Design for Professional Stats */
@media (max-width: 768px) {
  .stats-professional {
    padding: var(--space-16) 0;
  }
  
  .stats-header h2 {
    font-size: var(--font-size-3xl);
  }
  
  .stats-header p {
    font-size: var(--font-size-base);
  }
  
  .stats-grid-professional {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-8);
  }
  
  .stat-item-professional {
    padding: var(--space-8);
  }
  
  .stat-number-professional {
    font-size: 3.5rem;
  }
  
  .stat-label-professional {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 var(--space-3);
  }
  
  .logo-img {
    height: 32px;
  }
  
  .stats-header h2 {
    font-size: var(--font-size-2xl);
  }
  
  .stat-item-professional {
    padding: var(--space-6);
  }
  
  .stat-number-professional {
    font-size: 3rem;
  }
  
  .stat-label-professional {
    font-size: var(--font-size-base);
  }
  
  .stat-description-professional {
    font-size: var(--font-size-sm);
  }
}

/* Interactive Tech Badges */
.interactive-badges {
  position: relative;
}

.tech-badge {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.tech-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  display: block;
  transition: var(--transition);
}

.tech-badge:hover .tech-icon {
  transform: scale(1.2) rotate(5deg);
}

.tech-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 10;
}

.tech-badge:hover .tech-tooltip {
  opacity: 1;
  bottom: -50px;
}

/* Animated Cards */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:active::before {
  width: 300px;
  height: 300px;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Interactive Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover::after {
  opacity: 0.1;
}

.project-content {
  position: relative;
  z-index: 2;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--surface);
  border-top: 4px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Typing Animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--brand); }
}

.typing-text {
  overflow: hidden;
  border-right: 2px solid var(--brand);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Skill Bars */
.tech-skill {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 2s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Notification Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Interactive Hover Effects */
.tech-item {
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(109, 40, 217, 0.1), transparent);
  transition: left 0.5s;
}

.tech-item:hover::before {
  left: 100%;
}

/* Enhanced Button Interactions */
.button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

.button:active {
  transform: translateY(0);
}

/* Interactive Project Cards */
.project-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

/* Floating Elements */
@keyframes floatUp {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero .tech-badges .tech-badge:nth-child(1) {
  animation: floatUp 3s ease-in-out infinite;
}

.hero .tech-badges .tech-badge:nth-child(2) {
  animation: floatUp 3s ease-in-out infinite 0.5s;
}

.hero .tech-badges .tech-badge:nth-child(3) {
  animation: floatUp 3s ease-in-out infinite 1s;
}

/* Clean Professional Stats - Removed complex interactive elements */

/* Enhanced Form Interactions */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1), 0 4px 12px rgba(109, 40, 217, 0.15);
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  padding: var(--space-2);
}

/* Side Drawer Navigation */
.mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 998; }
.mobile-drawer { position: fixed; top: 0; left: 0; height: 100vh; width: min(80vw, 320px); background: var(--bg); border-right: 1px solid var(--border); box-shadow: var(--shadow-xl); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; display: flex; flex-direction: column; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-4); border-bottom: 1px solid var(--border); }
.mobile-drawer-close { background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.mobile-drawer-body { padding: var(--space-4); overflow-y: auto; }
.mobile-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-links a { color: var(--ink); text-decoration: none; padding: var(--space-3); border-radius: var(--radius); }
.mobile-links a:hover { background: var(--surface); }
.mobile-drawer-cta { margin-top: var(--space-6); }

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; margin-left: auto; }
  .nav .nav-links { display: none; }
  
  .nav {
    position: relative;
  }
  
  .header {
    padding: 0 var(--space-4);
  }
  
  .logo-img {
    height: 36px;
  }
  
  .nav > div:last-child {
    gap: var(--space-3);
  }
  
  .theme-toggle {
    height: 40px;
    width: 40px;
    font-size: var(--font-size-base);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .problem-solution {
    grid-template-columns: 1fr;
  }
  
  .timeline-tiers {
    grid-template-columns: 1fr;
  }
  
  .project-outcomes {
    justify-content: center;
  }
  
  .modal-content {
    margin: var(--space-4);
    max-height: calc(100vh - 2rem);
  }
  
  .tech-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero {
    padding: var(--space-16) 0;
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .card,
  .service-card,
  .contact-form {
    padding: var(--space-6);
  }
  
  .tech-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --border-hover: #000000;
  }
  
  [data-theme="dark"] {
    --border: #FFFFFF;
    --border-hover: #FFFFFF;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .theme-toggle,
  .button {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}
