:root {
  --bg: #0b0f12;
  --panel: #0f1720;
  --muted: #9aa6b2;
  --brand: #ffd166; /* warm gold */
  --accent: linear-gradient(90deg, #ffd166, #ff8a00);
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --font-mono: 'Fira Code', 'SF Mono', 'Roboto Mono', Menlo, monospace;
  color-scheme: dark;
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Improve code-like elements */
code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-feature-settings: "calt" 1;
  text-rendering: optimizeLegibility;
}

/* Better letter spacing for headings */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1.5em;
  font-size: 1.05em;
  max-width: 70ch;
  color: rgba(230, 238, 246, 0.9);
}

/* Improve readability for paragraphs */
p {
  max-width: 65ch;
  margin-bottom: 1.5em;
}

/* Better list styling */
ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* Improve form elements */
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 209, 102, 0.04), transparent),
              radial-gradient(900px 400px at 90% 80%, rgba(255, 138, 0, 0.03), transparent),
              var(--bg);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  padding: 32px;
}

/* layout */
.container { max-width: 1100px; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge { 
  width: 56px; 
  height: 56px; 
  background: var(--glass); 
  border-radius: 12px; 
  display: grid; 
  place-items: center; 
  font-weight: 800; 
  color: var(--brand); 
  font-size: 20px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.6); 
}
nav a { 
  color: var(--brand); 
  text-decoration: none; 
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

nav a:hover { color: #fff; }

/* hero */
.hero { 
  display: grid; 
  grid-template-columns: 1fr 380px; 
  gap: 28px; 
  align-items: start; 
  margin-bottom: 28px; 
}
.card { 
  background: var(--panel); 
  border-radius: var(--radius); 
  padding: 32px; 
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(0,0,0,0.4);
}

.headline { 
  font-size: 2.5em; 
  margin: 0 0 0.5em; 
  font-weight: 700; 
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.kicker { 
  color: var(--brand); 
  font-weight: 700; 
  letter-spacing: 0.6px; 
}

.sub { 
  color: var(--muted); 
  margin-bottom: 18px; 
}

.cta-row { 
  display: flex; 
  gap: 12px; 
}

.btn { 
  padding: 12px 16px; 
  border-radius: 12px; 
  border: 0; 
  font-weight: 700; 
  cursor: pointer; 
}

.btn-primary { 
  background: var(--brand); 
  color: #0b0f12; 
}

.btn-ghost { 
  background: transparent; 
  border: 1px solid rgba(255, 255, 255, 0.06); 
  color: var(--muted); 
}

/* stats */
.stats { 
  display: flex; 
  gap: 12px; 
  margin-top: 16px; 
}

.stat { 
  background: rgba(255, 255, 255, 0.02); 
  padding: 10px 12px; 
  border-radius: 12px; 
  text-align: center; 
}

.stat strong { 
  display: block; 
  font-size: 18px; 
}

/* projects */
.project { 
  padding: 16px; 
  border-radius: 12px; 
  background: rgba(255, 255, 255, 0.02); 
  border: 1px solid rgba(255, 255, 255, 0.04); 
  transition: all 0.3s ease;
}

.project:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.thumb { 
  border-radius: 8px; 
  background: var(--glass); 
}

.tags { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
}

.tag { 
  font-size: 12px; 
  padding: 6px 8px; 
  border-radius: 999px; 
  background: rgba(255, 255, 255, 0.02); 
  color: var(--muted); 
}

/* sidebar */
.sidebar { 
  position: sticky; 
  top: 32px; 
}

.card.small { 
  padding: 18px; 
}

/* case studies */
.case-study-card {
  transition: all 0.3s ease;
}

.case-study-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.case-study-header:hover {
  color: #fff;
}

.case-study-content h4 {
  font-size: 1em;
  margin: 0 0 12px 0;
}

.case-study-content ul {
  font-size: 0.95em;
  line-height: 1.8;
}

.case-study-content ul li {
  margin-bottom: 8px;
}

/* testimonials */
.testimonials { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 12px; 
  margin-top: 18px; 
}

.quote { 
  padding: 14px; 
  border-radius: 12px; 
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.01)); 
}

/* footer */
/* Testimonials */
.testimonial-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  transition: transform 0.3s ease;
}

.testimonial-content {
  position: relative;
  padding: 0 20px;
}

.testimonial-content p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #e6eef6;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--brand);
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  color: var(--brand);
  font-size: 1.5em;
  line-height: 0;
  position: relative;
  opacity: 0.7;
}

.testimonial-content p::before {
  top: 0.6em;
  margin-right: 5px;
}

.testimonial-content p::after {
  bottom: -0.4em;
  margin-left: 5px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 24px;
}

.testimonial-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.85em;
  color: var(--muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-content p {
    font-size: 1em;
    padding-left: 15px;
  }
  
  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

footer { 
  margin-top: 36px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  color: var(--muted); 
}

/* responsive */
@media (max-width: 900px) {
  .hero { 
    grid-template-columns: 1fr; 
  }
  .card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .testimonials { 
    grid-template-columns: 1fr; 
  }
  header { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  .sidebar { 
    position: static; 
    margin-top: 12px; 
  }
}

/* micro-interactions */
a.brand { 
  background: linear-gradient(90deg, #ffd166, #ff8a00); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
}

.project:hover { 
  transform: translateY(-6px); 
  transition: transform .22s cubic-bezier(.2, .9, .3, 1); 
}

.btn:active { 
  transform: translateY(1px); 
}

/* accessibility focus */
a:focus, 
button:focus { 
  outline: 3px solid rgba(255, 209, 102, 0.15); 
  outline-offset: 2px; 
}

/* tiny loader + progressive image placeholder */
.skeleton { 
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)); 
  border-radius: 8px; 
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 209, 102, 0.04), transparent),
              radial-gradient(900px 400px at 90% 80%, rgba(255, 138, 0, 0.03), transparent),
              var(--bg);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  padding: 32px;
}

/* layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 56px;
  height: 56px;
  background: var(--glass);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand);
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

nav a {
  color: var(--brand);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}

nav a:hover {
  color: #fff;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.headline {
  font-size: 2.5em;
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
}

/* Add any additional styles from the original file that might have been cut off */

/* Contact Section Styles */
.contact-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.6;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--brand), #ff8a00);
  opacity: 0.2;
  filter: blur(40px);
  animation: float 15s infinite ease-in-out;
}

.bg-element:nth-child(1) {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
  animation-delay: 0s;
}

.bg-element:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
  animation-duration: 20s;
}

.bg-element:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation-delay: 4s;
  animation-duration: 25s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(20px) rotate(-5deg);
  }
}

/* Form Input Animation */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-30px) scale(0.9) !important;
  color: var(--brand) !important;
  background: var(--panel);
  padding: 0 6px;
  border-radius: 4px;
}

/* Button Hover Effect */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 209, 102, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Social Icons Hover */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Contact Cards */
.contact-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.1) !important;
}

.contact-card:hover::before {
  transform: translateX(100%);
}

.contact-btn {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
}

.contact-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.contact-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-btn span:last-child {
  transition: transform 0.3s ease;
}

.contact-btn:hover span:last-child {
  transform: translateX(4px);
}

.social-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

.social-btn:hover::before {
  transform: translateX(100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-card {
    margin-bottom: 20px;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 20px;
  }
  
  body {
    padding: 20px;
  }
}
