:root {
  --ocean: #006d77;
  --ocean-light: #83c5be;
  --mint: #e8f8f5;
  --mint-mid: #aeddd8;
  --dark: #1a1a2e;
  --mid: #4a4a6a;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.7;
  background: var(--white);
  color: var(--dark);
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;
  background: var(--mint-mid);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean);
}

.topbar a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 700;
  transition:
    color 0.2s,
    letter-spacing 0.2s;
}

.topbar a:hover {
  color: #ff6b6b;
  letter-spacing: 0.03em;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: var(--ocean);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0 auto;
}

nav ul a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--mint-mid);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1000;
}

/* LANGUAGE TOGGLE */
.lang-toggle {
  position: relative;
  z-index: 1000;
}

.lang-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0.5px solid var(--white);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-selected:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-selected img {
  width: 20px;
  height: auto;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 150px;
  z-index: 9999;
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ocean);
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-option img {
  width: 20px;
  height: auto;
}

.lang-option:hover {
  background: var(--mint);
}

.lang-option.active {
  background: var(--mint);
  font-weight: 700;
}

/* SECTIONS */
section {
  padding: 5rem 10%;
}

section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ocean);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

section h2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
#hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ocean);
  padding-left: 10%;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 700px;
  margin-bottom: 1.25rem;
  color: var(--white);
  animation: fadeInUp 0.8s ease forwards;
}

#hero p {
  font-size: 1.1rem;
  color: var(--mint-mid);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

#hero .btn {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--mint-mid);
  color: var(--ocean);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  width: fit-content;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--mint-mid);
  border-color: var(--mint-mid);
  transform: translateY(-2px);
}

/* ABOUT */
#about {
  background: linear-gradient(
    135deg,
    var(--mint) 0%,
    var(--mint-mid) 50%,
    var(--ocean-light) 100%
  );
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ocean-light);
  flex-shrink: 0;
}

.about-text h2 {
  color: var(--ocean);
}

.about-text p {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
}

/* SERVICES */
#services {
  background: var(--white);
}

#services h2 {
  color: var(--ocean);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--mint);
  border: 1.5px solid var(--mint-mid);
  border-radius: 12px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.2s;
}

.service-card:hover {
  border-color: var(--ocean);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ocean);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--mid);
}

/* PORTFOLIO */
#portfolio {
  background: var(--ocean);
}

#portfolio h2 {
  color: var(--white);
}

.portfolio-sub {
  color: var(--white) !important;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.portfolio-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--mint-mid);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-card.coming-soon {
  opacity: 0.75;
}

.portfolio-img {
  background: var(--mint);
  padding: 2rem;
  text-align: center;
  font-size: 3rem;
}

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--mint);
  color: var(--ocean);
  border-radius: 20px;
  font-weight: 600;
}

.btn-small {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--ocean);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.btn-small:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-small.disabled {
  background: var(--mint-mid);
  color: var(--ocean);
  cursor: not-allowed;
  opacity: 0.7;
}

/* TESTIMONIALS */
#testimonials {
  background: var(--mint);
}

#testimonials h2 {
  color: var(--ocean);
}

.testimonials-sub {
  color: var(--mid);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--mint-mid);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean);
}

.author-role {
  font-size: 12px;
  color: var(--mid);
}

/* CONTACT */
#contact {
  background: var(--ocean);
}

#contact h2 {
  color: var(--white);
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1rem;
}

#contactForm input,
#contactForm textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--ocean-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: var(--mid);
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--mint-mid);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--white);
  background: var(--dark);
  border-top: 3px solid var(--ocean);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  section {
    padding: 4rem 7%;
  }
  nav ul {
    gap: 2rem;
  }
  nav ul a {
    font-size: 0.95rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 0.95rem;
  }
  section {
    padding: 3rem 5%;
  }

  .topbar {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.75rem;
  }

  nav {
    flex-wrap: wrap;
    padding: 1rem 5%;
    position: relative;
  }

  .logo {
    order: 1;
  }

  .hamburger {
    display: block;
    order: 2;
  }

  .lang-toggle {
    order: 3;
    margin-left: auto;
  }

  nav ul {
    display: none;
    order: 4;
    width: 100%;
  }

  #navMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ocean);
    flex-direction: column;
    padding: 1rem 5%;
    gap: 1rem;
    z-index: 999;
    border-top: 0.5px solid var(--ocean-light);
  }

  #navMenu.open {
    display: flex;
  }

  .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 140px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .profile-img {
    width: 150px;
    height: 150px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  #contactForm {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.6rem;
  }
  .logo {
    font-size: 1.2rem;
  }
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}
.service-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.about-text p {
  opacity: 1 !important;
}
/* BLOG SECTION HOMEPAGE */
#blog {
  background: var(--mint);
}

#blog h2 {
  color: var(--ocean);
}

.blog-sub {
  color: var(--mid);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.blog-card {
  background: var(--white);
  border: 1.5px solid var(--mint-mid);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ocean);
  background: var(--mint);
  border-radius: 20px;
  padding: 3px 12px;
  width: fit-content;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean);
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--mid);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--mint-mid);
}

.read-more {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--ocean-light);
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
