:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
}

/* ======================
   RESET & BASE
====================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* ======================
   HEADER
====================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.1);
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav {
  max-width: 1100px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ======================
   LOGO & NAV
====================== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 22px;
  color: #33769d;
  text-decoration: none;
}

.logo img {
  height: 36px;
}

.nav-links a,
.lang-switch button {
  margin-left: 16px;
  font-size: 14px;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.nav-links a:hover,
.lang-switch button:hover {
  color: #33769d;
}

.nav-links a.active {
  color: #33769d;
  font-weight: 600;
  border-bottom: 2px solid #33769d;
  padding-bottom: 4px;
}

/* ======================
   HAMBURGER
====================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gray);
  margin: 4px 0;
  transition: 0.3s;
}

/* ======================
   HERO (FIXED)
====================== */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow-x: hidden;
  color: #fff;
  text-align: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 650px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(15, 23, 42, 0.6),
    rgba(15, 23, 42, 0.6)
  );
  z-index: 0;
}

.slide-content {
  position: absolute;
  left: 50%;
  bottom: 70px;              
  transform: translateX(-50%);
  z-index: 1;
  padding: 12px 20px;
  max-width: 90%;
  white-space: nowrap;       
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}


.hero h1 {
  font-size: clamp(20px, 3vw, 36px);
  margin: 0;
}

.hero p {
  max-width: 600px;
  margin: auto;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ======================
   HERO CONTROLS
====================== */
.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.hero-controls button.active {
  background: #fff;
}

/* ======================
   BUTTON
====================== */
.btn {
  display: inline-block;
  background: #33769d;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #43b5b1;
}

/* ======================
   SECTIONS
====================== */
section {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
  scroll-margin-top: 90px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
  font-size: 14px;
}

/* ======================
   GRID
====================== */
.services,
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card,
.portfolio-item {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.card:hover,
.portfolio-item:hover {
  transform: translateY(-5px);
}

/* ======================
   PORTFOLIO
====================== */
.portfolio-item {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-item div {
  padding: 20px;
}

/* ======================
   CONTACT & FOOTER
====================== */
.contact {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
}

footer {
  background: #33769d;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 80px;
}

footer p {
  font-size: 13px;
  opacity: 0.8;
}

/* ======================
   LANGUAGE
====================== */
.lang {
  display: none;
}

.lang.active {
  display: block;
}

/* ======================
   FADE IN
====================== */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   MOBILE
====================== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 24px;
  }
  
  .slide-content {
    bottom: 40px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    padding: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .lang-switch {
    margin: 10px 0;
  }

  .hamburger {
    display: flex;
  }
}