/* ====== Design system ====== */
:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0f766e; /* teal-700 */
  --accent-600:#0ea5a4;
  --accent-100:#ecfeff;
  --accent-hover:#134e4a;
  --glass: rgba(15,118,110,0.06);
  --glass-card: rgba(255,255,255,0.85);
  --shadow: 0 6px 18px rgba(16,24,40,0.08);
  --shadow-hover: 0 12px 32px rgba(16,24,40,0.15);
  --shadow-card: 0 4px 20px rgba(16,24,40,0.06);
  --gradient-primary: linear-gradient(135deg, var(--accent-600), var(--accent));
  --gradient-bg: linear-gradient(180deg, var(--bg), #ffffff 60%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(246,248,251,0.4));
  --radius:12px;
  --radius-lg:16px;
  --max-width:1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}

html{
  scroll-behavior: smooth;
}

html,body{height:100%}

body{
  margin:0;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:32px;
  position: relative;
}

/* ===== Header ===== */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 0;
  backdrop-filter: blur(20px);
  background: var(--glass-card);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 20px;
  z-index: 100;
  transition: var(--transition);
}

header:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  transition: var(--transition);
}

.brand:hover {
  transform: scale(1.02);
}

.logo{
  width:56px;
  height:56px;
  border-radius:14px;
  background: var(--gradient-primary);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
  font-size:20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

.logo:hover {
  transform: rotate(5deg) scale(1.1);
  box-shadow: var(--shadow-hover);
}

nav{
  display:flex;
  gap:8px;
  align-items:center;
  background: rgba(255,255,255,0.5);
  padding: 8px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

a.navlink{
  color:var(--muted);
  text-decoration:none;
  padding:12px 16px;
  border-radius:10px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

a.navlink::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-100);
  transition: left 0.3s ease;
  z-index: -1;
}

a.navlink:hover::before {
  left: 0;
}

a.navlink:hover{
  color:var(--accent);
  transform: translateY(-2px);
}

.cta{
  background: var(--gradient-primary);
  color:white;
  padding:12px 20px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta::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;
}

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

.cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* ===== Hero ===== */
.hero{
  display:grid;
  grid-template-columns:1fr 460px;
  gap:40px;
  align-items:center;
  padding:60px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glass) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

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

.hero h1{
  margin:0;
  font-size:42px;
  line-height:1.1;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.hero p{
  color:var(--muted);
  margin-top:16px;
  font-size: 18px;
  line-height: 1.7;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.stats{
  display:flex;
  gap:20px;
  margin-top:32px;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.stat{
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  padding:20px;
  border-radius:16px;
  box-shadow: var(--shadow-card);
  min-width:140px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}

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

.stat strong{
  display:block;
  font-size:28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card{
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  padding:24px;
  border-radius:24px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
  animation: slideInRight 0.8s ease-out 0.3s both;
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.hero-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(16,24,40,0.2);
}

.hero-card img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:16px;
  transition: var(--transition);
}

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

/* ===== Sections ===== */
section{
  padding:80px 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.7;
}

h2.section-title{
  font-size:32px;
  margin:0 0 16px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p.lead{
  color:var(--muted);
  margin:0 0 40px;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Services */
.services{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.service{
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  padding:32px;
  border-radius:20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.service h3{
  margin:0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.service p {
  margin: 0;
  line-height: 1.6;
}

/* Gallery */
.filters{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:32px;
  justify-content: center;
}

.filter-btn{
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border:1px solid rgba(15,118,110,0.15);
  padding:12px 20px;
  border-radius:25px;
  cursor:pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--muted);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.95);
}

.filter-btn.active{
  background: var(--gradient-primary);
  color:white;
  border-color:transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

.project{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  cursor: pointer;
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.project img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  transition: var(--transition);
}

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

.project .meta{
  position:absolute;
  left:16px;
  bottom:16px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  color:white;
  padding:12px 16px;
  border-radius:12px;
  font-size:14px;
  font-weight: 500;
  transition: var(--transition);
}

.project:hover .meta {
  background: rgba(15,118,110,0.9);
  transform: translateY(-4px);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(20px);
  z-index:1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox.open{
  display:grid;
}

.lightbox img{
  max-width:90%;
  max-height:80%;
  border-radius:16px;
  box-shadow: 0 25px 60px rgba(2,6,23,0.8);
  animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Quote Form */
.quote{
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  padding:32px;
  border-radius:24px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255,255,255,0.3);
  max-width: 800px;
  margin: 0 auto;
}

form{
  display:grid;
  gap:20px;
}

.row{
  display:flex;
  gap:20px;
}

.row .field{
  flex:1;
}

label{
  display:block;
  font-size:14px;
  margin-bottom:8px;
  font-weight: 600;
  color: var(--accent);
}

input[type=text],input[type=email],input[type=tel],select,textarea{
  width:100%;
  padding:16px;
  border-radius:12px;
  border:2px solid rgba(15,118,110,0.1);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  font-size: 16px;
}

input[type=text]:focus,input[type=email]:focus,input[type=tel]:focus,select:focus,textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
  transform: translateY(-2px);
}

textarea{
  min-height:140px;
  resize:vertical;
  font-family: inherit;
}

.submit{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:16px 24px;
  border-radius:12px;
  background: var(--gradient-primary);
  color:white;
  border:none;
  cursor:pointer;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.submit:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.submit:active {
  transform: translateY(-1px) scale(1.02);
}

/* Testimonials + footer */
footer{
  padding:60px 0;
  color:var(--muted);
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}

/* ===== Responsive ===== */
@media (max-width:1200px){
  .container {
    padding: 24px;
  }
  
  .hero{
    grid-template-columns:1fr;
    gap:32px;
  }
  
  .hero-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width:1000px){
  .hero{
    grid-template-columns:1fr;
  }
  
  .services{
    grid-template-columns:repeat(2,1fr);
    gap:20px;
  }
  
  .gallery{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
  }
  
  h2.section-title {
    font-size: 28px;
  }
}

@media (max-width:768px){
  .services{
    grid-template-columns:1fr;
  }
  
  .gallery{
    grid-template-columns:1fr;
  }
  
  nav{
    display:none;
  }
  
  header{
    padding:16px 0;
    margin-bottom: 16px;
  }
  
  .container{
    padding:16px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .stats {
    flex-direction: column;
    gap: 16px;
  }
  
  h2.section-title {
    font-size: 24px;
  }
  
  .row {
    flex-direction: column;
    gap: 16px;
  }
  
  .filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Tiny helpers */
.muted{
  color:var(--muted);
}

.badge{
  background: var(--gradient-primary);
  color:white;
  padding:8px 16px;
  border-radius:20px;
  font-weight:600;
  font-size: 14px;
  display: inline-block;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth transitions for dynamic content */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selection styles */
::selection {
  background: var(--accent-100);
  color: var(--accent);
}
