:root{
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --bg: #f7f8fb;
  --text: #0f1724;
  --muted: #667085;

  /* Gradient colors inspired by your logo */
  --g1: #0b3a6f;   /* deep blue */
  --g2: #13b79a;   /* teal */
  --g3: #6f2fbf;   /* purple */

  --radius: 12px;
  --container: 1100px;
}

* {box-sizing: border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* layout */
.container{
  width:90%;
  max-width:var(--container);
  margin:0 auto;
}

/* Header */
.site-header{
  background:transparent;
  padding:18px 0;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-logo{
  height: 150px;
}
.nav a{
  margin-left:18px;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
}
.nav a:hover{opacity:0.8}

/* HERO */
.hero{
  padding:56px 0;
}
.hero-inner{
  display:flex;
  gap:40px;
  align-items:center;
  justify-content:space-between;
}
.hero-logo {
  width: 260px; /* adjust size as needed */
  max-width: 100%;
  animation: fadeInUp 1.2s ease both;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-text{
  max-width:640px;
}
.animated-gradient{
  font-size:40px;
  margin:0;
  line-height:1.05;
  font-weight:700;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s linear infinite;
}
@keyframes gradientShift{
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
.tagline{
  margin:10px 0 18px;
  font-size:18px;
  color:var(--muted);
  font-weight:600;
}
.lead{color:var(--muted); margin-bottom:20px}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; /* optional, keeps border visible */
  border: 2px solid #ccc; /* light grey border */
  border-radius: 16px; /* soft corners */
  padding: 15px; /* adds space between logo and border */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* optional for depth */
  width: fit-content;
  margin: auto;
}

/* CTA buttons */
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  border:0;
}
.btn.primary{
  background: linear-gradient(90deg,var(--g1),var(--g2),var(--g3));
  color:#fff;
  box-shadow: 0 6px 18px rgba(17,24,39,0.08);
}
.btn.ghost{
  background:transparent;
  border:1px solid rgba(11, 58, 111, 0.08);
  color:var(--text);
}
.btn.outline{
  background:transparent;
  border:1px solid rgba(11, 58, 111, 0.12);
  padding:8px 14px;
  border-radius:8px;
}

/* mock device */
.mock-device{
  width:220px;
  height:140px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(11, 58, 111, 0.06);
  backdrop-filter: blur(6px);
}
.mock-screen{ font-weight:700; color:var(--muted) }

/* Sections */
.section{padding:48px 0}
.section h2{
  margin:0 0 18px;
  font-size:22px;
  color:var(--text);
}

/* Projects grid */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:20px;
  margin-top:18px;
}
.card{
  background:#fff;
  border-radius:12px;
  padding:18px;
  box-shadow: 0 6px 18px rgba(17,24,39,0.04);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:220px;
}
.card.muted{opacity:0.9}
.card-top{display:flex; justify-content:center; align-items:center; padding-bottom:10px}
.logo-placeholder{
  width:100%;
  height:84px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px dashed rgba(11, 58, 111, 0.06);
  color:var(--muted);
  font-weight:600;
  background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
}
.logo-placeholder.small{height:58px}
.card-body h3{ margin:0 0 8px; font-size:18px}
.card-body p{ margin:0; color:var(--muted) }
.card-footer{ margin-top:16px; display:flex; gap:8px; }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  align-items:start;
}
.contact-card{
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.96));
  padding:20px;
  border-radius:12px;
  box-shadow: 0 6px 18px rgba(17,24,39,0.04);
}
.contact-links{list-style:none; padding:0; margin:10px 0 0}
.contact-links li{ margin-bottom:8px; color:var(--muted) }

.contact-form{
  background:#fff;
  padding:18px;
  border-radius:12px;
  box-shadow: 0 6px 18px rgba(17,24,39,0.04);
}
.contact-form label{ display:block; margin-bottom:12px; font-weight:600; color:var(--muted)}
.contact-form input, .contact-form textarea{
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  border-radius:8px;
  border:1px solid rgba(11, 58, 111, 0.08);
  outline:none;
  font-size:14px;
}
.form-row{ display:flex; align-items:center; gap:12px; margin-top:8px}
.form-message{ color:green; font-weight:600; font-size:14px}

/* Footer */
.site-footer{
  padding:18px 0;
  text-align:center;
  color:var(--muted);
  border-top:1px solid rgba(11, 58, 111, 0.03);
}

/* Responsive */
@media (max-width:900px){
  .hero-inner{flex-direction:column; text-align:center}
  .hero-art{order:2}
  .contact-grid{grid-template-columns:1fr}
  .header-inner{gap:12px}
  .nav{display:none}
  .site-logo{height:42px}
}

/* Card layout - keep as is or tweak if needed */
.card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Fix: ensure .card-top centers its contents */
.card-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

/* The bordered logo container */
.logo-placeholder {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border: 2px solid #dcdcdc !important;
  border-radius: 12px !important;
  padding: 20px !important;
  background: #fff !important;
  width: fit-content !important;
  height: auto !important;
  margin: 0 auto !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Logo image itself */
.hero-logo {
  display: block;
  max-width: 180px; /* adjust to fit inside border */
  height: auto;
  border-radius: 8px; /* optional: matches rounded container */
}