/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Calibri, 'Trebuchet MS', sans-serif;
}

body {
  color: #2c3e50;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #26a69a;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.light-image {
  text-shadow: 2px 2px 3px #000;
}

.hide-on-small { display: none; }
.hide-on-large { display: block; }

@media (min-width: 601px) {
  .hide-on-small { display: block; }
  .hide-on-large { display: none; }
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 25px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.section-white { background: #fff; }
.section-grey { background: #f5f5f5; }

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #26a69a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  margin: 0 auto;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444 !important;
  font-weight: 600;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #26a69a;
}

.brand-name { font-size: 1.1rem; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #444 !important;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-link:hover { color: #26a69a !important; }

.nav-ts-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #26a69a;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== SIDEBAR (mobile) ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  padding-top: 30px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.open { left: 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 25px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.sidebar-link:hover { background: #e0f2f1; }

.material-symbol {
  font-style: normal;
  font-size: 1.3rem;
  color: #26a69a;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 25px;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(38, 166, 154, 0.9);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: #26a69a;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.7rem; }
}

/* ===== SKILLS ===== */
.skills { padding: 50px 15px; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 600px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

.skill-card {
  text-align: center;
  padding: 20px 30px;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.skill-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.skill-icon { margin-bottom: 12px; }

.skill-icon .img-width { width: 90px; height: 90px; object-fit: contain; }

.skill-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.skill-desc { color: #555; font-size: 0.95rem; }

/* ===== PARALLAX BANNERS ===== */
.parallax-container {
  position: relative;
  min-height: 380px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: translateZ(0);
  will-change: transform;
}

.parallax-container .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.banner-title {
  font-size: 2.2rem;
  text-align: center;
}

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 50px 15px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #26a69a;
}

.testimonial-name {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.testimonial-name a { color: #26a69a; }

.testimonial-title {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.testimonial-rating {
  color: #fbc02d;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.testimonial-quote {
  color: #555;
  font-size: 0.9rem;
  text-align: justify;
}

/* ===== BLOG ===== */
.blog { padding: 50px 15px; }

.blog-title { margin-bottom: 30px; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

.post-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s;
}

.post-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.post-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.post-title a { color: #2c3e50; }
.post-title a:hover { color: #26a69a; }

.post-info {
  color: #999;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.post-desc {
  color: #666;
  font-size: 0.9rem;
}

/* ===== CONTACT ===== */
.contact { padding: 50px 15px; }

.row { margin: 0; }

.form-col {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #26a69a;
  box-shadow: 0 0 0 3px rgba(38,166,154,0.15);
}

.form-alt {
  margin-bottom: 18px;
  color: #555;
  font-size: 0.9rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #26a69a;
  color: #fff !important;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: #1b887d;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: #263238;
  color: #cfd8dc;
  padding-top: 50px;
}

.footer .section-title { color: #fff; }
.section-title.light { color: #fff; }

.footer-text {
  color: #cfd8dc;
  margin-bottom: 15px;
}

.link-light { color: #80cbc4 !important; }
.link-light:hover { text-decoration: underline; }

.footer-copy {
  margin-top: 30px;
  padding: 18px 0;
  background: rgba(0,0,0,0.2);
  text-align: center;
  color: #90a4ae;
  font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 20000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
  text-align: center;
}

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

.modal-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #263238;
}

.modal-message {
  color: #555;
  margin-bottom: 18px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
}

.modal-input:focus {
  outline: none;
  border-color: #26a69a;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-modal {
  background: #26a69a;
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-modal:hover { background: #1b887d; }

.btn-cancel {
  background: #78909c;
}

.btn-cancel:hover { background: #607d8b; }

/* ===== CHANGED BANNER STYLE (parallax fix for mobile) ===== */
@media only screen and (max-width: 992px) {
  .parallax-bg {
    background-attachment: scroll;
  }
  .hero-bg {
    background-attachment: scroll;
  }
}

/* ===== RESPONSIVE NAV ===== */
@media only screen and (max-width: 992px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 20001;
  padding: 8px 16px;
  background: #26a69a;
  color: #fff;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid #26a69a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== PRINT STYLES (SEO/branding) ===== */
@media print {
  .navbar,
  .hero-bg,
  .hamburger,
  .mobile-sidebar,
  .sidebar-overlay,
  .footer-copy,
  #loader,
  .parallax-bg,
  .overlay { display: none !important; }

  .hero {
    min-height: 0;
    padding: 20px 0;
    color: #000;
  }
  .hero-overlay { background: none !important; }
  .hero-title { color: #000; }
  .hero-subtitle { color: #000; text-shadow: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
