:root{
  --primary:#174ea6;
  --primary-dark:#0f3d86;
  --primary-soft:#eef4ff;
  --primary-border:#d7e5ff;

  --text:#1f2d3d;
  --muted:#5f6f82;
  --bg:#f7f9fc;
  --white:#ffffff;
  --border:#dde5ef;
  --shadow:0 10px 30px rgba(23,78,166,0.08);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:12px;
}

/* Theme overrides */
body.theme-red{
  --primary:#c62828;
  --primary-dark:#8e1d1d;
  --primary-soft:#fff0f0;
  --primary-border:#ffd6d6;
  --shadow:0 10px 30px rgba(198,40,40,0.10);
}

body.theme-green{
  --primary:#2e7d32;
  --primary-dark:#1f5a23;
  --primary-soft:#eefaf0;
  --primary-border:#d5efd9;
  --shadow:0 10px 30px rgba(46,125,50,0.10);
}

body.theme-blue{
  --primary:#1565c0;
  --primary-dark:#0d47a1;
  --primary-soft:#eef5ff;
  --primary-border:#d6e7ff;
  --shadow:0 10px 30px rgba(21,101,192,0.10);
}

body.theme-purple{
  --primary:#6a1b9a;
  --primary-dark:#4a1270;
  --primary-soft:#f5effb;
  --primary-border:#ead9f8;
  --shadow:0 10px 30px rgba(106,27,154,0.10);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin:0;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}

h1,h2,h3,h4,h5,h6{
  font-weight:700;
  color:#14263d;
}

p{
  color:var(--muted);
}

a{
  text-decoration:none;
}

.section-space{
  padding:80px 0;
}

.section-title{
  font-size:2rem;
  margin-bottom:12px;
}

.section-subtitle{
  max-width:820px;
  color:var(--muted);
  margin-bottom:0;
}

.topbar{
  background:var(--white);
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 16px rgba(0,0,0,0.03);
}

.navbar-brand{
  font-weight:800;
  color:var(--primary)!important;
  letter-spacing:0.2px;
}

.nav-link{
  font-weight:600;
  color:var(--text)!important;
}

.nav-link:hover{
  color:var(--primary)!important;
}

.btn-main{
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:999px;
  padding:12px 24px;
  font-weight:700;
  transition:0.3s ease;
}

.btn-main:hover{
  background:var(--primary-dark);
  color:#fff;
  transform:translateY(-2px);
}

.btn-outline-main{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--primary);
  border-radius:999px;
  padding:12px 24px;
  font-weight:700;
  transition:0.3s ease;
}

.btn-outline-main:hover{
  background:var(--primary);
  color:#fff;
}

.hero{
  position:relative;
  padding:120px 0 80px;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(244,247,251,0.93)),
    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80') center center / cover no-repeat;
  z-index:0;
}

.hero .container{
  position:relative;
  z-index:1;
}

.hero-tag{
  display:inline-block;
  padding:8px 16px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-weight:700;
  font-size:0.9rem;
  margin-bottom:20px;
  border:1px solid var(--primary-border);
}

.hero h1{
  font-size:clamp(2.3rem,5vw,4rem);
  line-height:1.1;
  margin-bottom:18px;
}

.hero p{
  font-size:1.05rem;
  max-width:720px;
}

.hero-card{
  background:rgba(255,255,255,0.96);
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:28px;
  height:100%;
  backdrop-filter:blur(2px);
}

.hero-card h5{
  margin-bottom:16px;
}

.hero-list{
  padding-left:18px;
  margin-bottom:0;
}

.hero-list li{
  margin-bottom:8px;
  color:var(--muted);
}

.info-card,
.service-card,
.why-card,
.portfolio-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  height:100%;
  transition:0.3s ease;
}

.info-card:hover,
.service-card:hover,
.why-card:hover,
.portfolio-card:hover{
  transform:translateY(-6px);
}

.card-pad{
  padding:26px;
}

.icon-wrap{
  width:56px;
  height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:1.4rem;
  margin-bottom:16px;
}

.portfolio-thumb{
  width:100%;
  height:240px;
  object-fit:cover;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  border-bottom:1px solid var(--border);
  background:#edf2f8;
}

.portfolio-type{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:0.82rem;
  font-weight:700;
  border:1px solid var(--primary-border);
  margin-bottom:12px;
}

.portfolio-note{
  font-size:0.95rem;
}

.highlight-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:28px;
}

.process-step{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-bottom:22px;
}

.step-num{
  min-width:44px;
  height:44px;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.contact-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:30px;
}

.form-control,
.form-control:focus,
textarea.form-control{
  border-radius:12px;
  box-shadow:none;
  border:1px solid var(--border);
  padding:14px 16px;
}

.form-control:focus{
  border-color:var(--primary);
}

.footer{
  padding:28px 0;
  background:#fff;
  border-top:1px solid var(--border);
}

.footer a{
  color:var(--muted);
  font-weight:600;
  margin:0 10px;
}

.footer a:hover{
  color:var(--primary);
}

.small-note{
  font-size:0.92rem;
  color:var(--muted);
}

.portfolio-thumb-wrap{
  position:relative;
  cursor:pointer;
  overflow:hidden;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
}

.portfolio-thumb-wrap::after{
  content:"View";
  position:absolute;
  top:16px;
  right:16px;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:0.82rem;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  opacity:0;
  transform:translateY(-6px);
  transition:0.3s ease;
}

.portfolio-thumb-wrap:hover::after{
  opacity:1;
  transform:translateY(0);
}

.portfolio-thumb-wrap img{
  transition:transform 0.35s ease;
}

.portfolio-thumb-wrap:hover img{
  transform:scale(1.03);
}

.portfolio-modal-img{
  width:100%;
  max-height:75vh;
  object-fit:contain;
  border-radius:16px;
  background:#f6f8fb;
}

.portfolio-modal .modal-content{
  border:none;
  border-radius:22px;
  overflow:hidden;
}

.portfolio-modal .modal-header{
  border-bottom:1px solid #e8eef5;
}

.portfolio-modal .modal-title{
  font-weight:700;
  color:#14263d;
}

.portfolio-modal-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.portfolio-modal-counter{
  font-size:0.95rem;
  color:var(--muted);
  font-weight:600;
}

.portfolio-nav-btn{
  border:none;
  background:var(--primary);
  color:#fff;
  width:42px;
  height:42px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  transition:0.3s ease;
}

.portfolio-nav-btn:hover{
  background:var(--primary-dark);
}

.portfolio-nav-btn:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.portfolio-modal-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

@media (max-width:991.98px){
  .hero{
    text-align:center;
  }

  .hero p{
    margin-left:auto;
    margin-right:auto;
  }
}

@media (max-width:767.98px){
  .section-space{
    padding:65px 0;
  }

  .portfolio-thumb{
    height:220px;
  }
}