/* ===========================================================
   Portfolio — 2015 flat / material style
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --turquoise: #1abc9c;
  --green-sea: #16a085;
  --emerald:   #2ecc71;
  --peter:     #3498db;
  --belize:    #2980b9;
  --amethyst:  #9b59b6;
  --wisteria:  #8e44ad;
  --midnight:  #2c3e50;
  --asphalt:   #34495e;
  --sunflower: #f1c40f;
  --carrot:    #e67e22;
  --alizarin:  #e74c3c;
  --clouds:    #ecf0f1;
  --silver:    #bdc3c7;
  --concrete:  #95a5a6;
  --asbestos:  #7f8c8d;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--asphalt);
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }

/* ===========================================================
   Page loader
   =========================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--midnight);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--turquoise);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================================================
   Buttons
   =========================================================== */

.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-ghost:hover { background: #fff; color: var(--midnight); }

.btn-solid {
  background: var(--turquoise);
  color: #fff;
  border: 2px solid var(--turquoise);
}
.btn-solid:hover { background: var(--green-sea); border-color: var(--green-sea); }

/* ===========================================================
   Header / Nav
   =========================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: all .3s ease;
}
.site-header.scrolled {
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(44,62,80,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color .3s ease;
}
.site-header.scrolled .logo { color: var(--midnight); }
.logo-dot { color: var(--turquoise); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 4px;
  margin: 0 12px;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color .3s ease;
}
.site-header.scrolled .nav-link { color: var(--asphalt); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--turquoise);
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: background .3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--midnight); }

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,62,80,0.55), rgba(44,62,80,0.75));
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-kicker {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.85);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 16px;
}
.scroll-down span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDown 1.6s ease infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===========================================================
   Section shared
   =========================================================== */

section:not(.hero) { padding: 110px 0; }

.section-tag {
  display: block;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 12px;
}
.section-tag-light { color: var(--sunflower); }

.section-title {
  text-align: center;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--midnight);
  margin-bottom: 60px;
}
.section-title-light { color: #fff; }

.section-desc {
  text-align: center;
  color: var(--concrete);
  margin-top: -40px;
  margin-bottom: 50px;
}

/* ===========================================================
   Scroll reveal
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   About
   =========================================================== */

.about-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 70px;
}

.photo-block {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: var(--peter);
  position: relative;
}
.photo-block::after {
  content: "";
  position: absolute;
  top: 16px; left: 16px;
  width: 100%; height: 100%;
  border: 3px solid var(--turquoise);
  z-index: -1;
}

.about-text p { color: var(--asbestos); margin-bottom: 16px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  padding: 6px 16px;
  background: var(--clouds);
  color: var(--asphalt);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--turquoise);
}

.stats-row {
  display: flex;
  text-align: center;
}
.stat-box {
  flex: 1;
  padding: 30px 10px;
  border-left: 1px solid var(--clouds);
}
.stat-box:first-child { border-left: none; }

.stat-number {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--peter);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--concrete);
}

/* ===========================================================
   Portfolio
   =========================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  background: #fff;
  box-shadow: 0 2px 10px rgba(44,62,80,0.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(44,62,80,0.2);
}
.portfolio-card.hidden { display: none; }

.card-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-icon {
  font-size: 30px;
  color: rgba(255,255,255,0.9);
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.08), 2px 2px 0 rgba(0,0,0,0.08),
    3px 3px 0 rgba(0,0,0,0.08), 4px 4px 0 rgba(0,0,0,0.08),
    5px 5px 0 rgba(0,0,0,0.08), 6px 6px 0 rgba(0,0,0,0.08);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  box-sizing: border-box;
}
.thumb-1 { background: var(--peter); }
.thumb-2 { background: var(--turquoise); }
.thumb-3 { background: var(--amethyst); }
.thumb-4 { background: var(--carrot); }
.thumb-5 { background: var(--alizarin); }
.thumb-6 { background: var(--wisteria); }
.thumb-7 { background: var(--peter); }
.thumb-8 { background: var(--turquoise); }

.card-body { padding: 22px 24px 26px; }
.card-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 8px;
}
.card-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--midnight); }
.card-body p { font-size: 13px; color: var(--concrete); }
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--peter);
  border-bottom: 2px solid var(--peter);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}
.card-link:hover { color: var(--turquoise); border-color: var(--turquoise); }

/* ===========================================================
   Testimonials
   =========================================================== */

.testimonials {
  background: var(--peter);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  margin: -60px 0;
  padding-top: 170px !important;
  padding-bottom: 170px !important;
}

.testimonial-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-track { flex: 1; overflow: hidden; }
.testimonial-slide { text-align: center; color: #fff; }

.quote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-author strong { display: block; }
.testimonial-author span { font-size: 12px; color: rgba(255,255,255,0.75); }

.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: var(--peter);
  background: #fff;
}

.slider-arrow {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.slider-arrow:hover { background: #fff; color: var(--peter); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.dot.active { background: #fff; }

/* ===========================================================
   Contact
   =========================================================== */

.contact-grid { display: flex; justify-content: center; }

.contact-grid-single .contact-info { max-width: 420px; width: 100%; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--clouds);
  border-left: 3px solid var(--turquoise);
}
.info-box strong { display: block; font-size: 13px; color: var(--midnight); }
.info-box span { font-size: 13px; color: var(--concrete); }

.info-icon {
  width: 36px;
  font-size: 20px;
  color: var(--peter);
  text-align: center;
  flex-shrink: 0;
}

.social-links { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--midnight);
  transition: background .2s ease, transform .2s ease;
}
.social-btn:hover { background: var(--turquoise); transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  background: var(--midnight);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 30px 0;
}
.footer-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 6px; }

/* ===========================================================
   FAB back to top
   =========================================================== */

.fab-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--turquoise);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,188,156,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
  z-index: 90;
}
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-top:hover { background: var(--green-sea); }

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 860px) {
  .about-grid { flex-direction: column; text-align: center; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 40px; }
  .stats-row { flex-wrap: wrap; }
  .stat-box { flex: 1 1 50%; border-left: none; border-top: 1px solid rgba(0,0,0,0.06); }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 4px; }
  .nav-link { color: var(--asphalt) !important; margin: 0; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: #fff; }
  .site-header.scrolled .nav-toggle span { background: var(--midnight); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials { clip-path: none; margin: 0; padding-top: 90px !important; padding-bottom: 90px !important; }
}
