/* ============================================================
   PUBLIC SITE STYLES — Material Design + Parallax + Reveals
   ============================================================ */

* { box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #333;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; font-weight: 700; }

/* ---------- NAVBAR ---------- */
.site-nav {
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.35s ease;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}
.site-nav .brand-logo, .site-nav ul a { color: #fff; transition: color 0.3s; }
.site-nav.scrolled .brand-logo, .site-nav.scrolled ul a { color: #333; }
.site-nav .brand-text { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.6rem; }
.site-nav ul a:hover { background: rgba(255,255,255,0.1); }
.site-nav.scrolled ul a:hover { background: rgba(0,0,0,0.05); color: var(--primary); }
.site-nav .sidenav-trigger { color: #fff; }
.site-nav.scrolled .sidenav-trigger { color: #333; }

/* ---------- HERO ---------- */
.hero-section { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-parallax { height: 100vh; min-height: 600px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px; }
.hero-subtitle { font-weight: 300; margin-bottom: 1.5rem; opacity: 0.95; }
.hero-content { font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

@media (max-width: 600px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
}

/* ---------- SLIDER ---------- */
.fullscreen-slider { height: 100vh !important; min-height: 600px; }
.fullscreen-slider .caption { padding: 0 20px; }
.fullscreen-slider .caption h2 { font-size: 4rem; color: #fff !important; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.fullscreen-slider .indicators { bottom: 30px; }
.fullscreen-slider .indicators .indicator-item.active { background: var(--accent); }

/* ---------- SECTIONS ---------- */
.section-block { padding: 100px 0; position: relative; }
.section-overline {
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); font-weight: 500;
  font-family: 'Roboto', sans-serif; margin-bottom: 8px;
}
.section-title { font-size: 3rem; margin: 0 0 12px; color: #222; }
.title-underline {
  width: 60px; height: 4px; background: var(--primary);
  margin: 16px auto 60px; border-radius: 2px;
}

/* ---------- PARALLAX ---------- */
.parallax-container { height: 500px; }
.parallax-thin { height: 200px; }
.has-parallax::before {
  content: ''; position: absolute; inset: 0;
  background-attachment: fixed; background-size: cover; background-position: center;
}

/* ---------- ABOUT ---------- */
.about-image { border-radius: 8px; }
.about-content { font-size: 1.05rem; padding: 0 12px; }

/* ---------- SERVICES ---------- */
.service-card {
  border-radius: 12px !important;
  transition: transform 0.4s, box-shadow 0.4s;
  height: 100%;
  border-top: 4px solid var(--primary);
}
.service-card:hover { transform: translateY(-8px); }
.service-icon {
  font-size: 60px !important; color: var(--primary);
  margin-bottom: 20px; display: inline-block;
}
.service-title { font-family: 'Roboto', sans-serif; font-weight: 500; margin: 12px 0; }

/* ---------- PORTFOLIO ---------- */
.portfolio-item {
  position: relative; overflow: hidden; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.portfolio-item img { width: 100%; display: block; transition: transform 0.6s; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
  display: flex; align-items: flex-end; padding: 24px;
  opacity: 0; transition: opacity 0.4s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { color: #fff; }
.portfolio-category {
  display: inline-block; padding: 4px 12px; background: var(--accent);
  border-radius: 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ---------- TEAM ---------- */
.team-card { border-radius: 12px !important; overflow: hidden; }
.team-card .card-image img { aspect-ratio: 1/1; object-fit: cover; }
.team-name { font-family: 'Roboto', sans-serif; font-weight: 500; margin: 8px 0 4px; }
.team-social { margin-top: 12px; }
.team-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f5f5f5; margin: 0 4px; color: var(--primary);
  transition: all 0.3s;
}
.team-social a:hover { background: var(--primary); color: #fff; }
.team-social i { font-size: 18px; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-carousel { height: 380px !important; }
.testimonial-carousel .carousel-item { width: 500px !important; }
.testimonial-card {
  background: #fff; padding: 40px;
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  margin: 20px; min-height: 320px;
}
.quote-icon { font-size: 48px !important; color: var(--accent); opacity: 0.6; }
.testimonial-quote { font-size: 1.1rem; font-style: italic; line-height: 1.7; }
.testimonial-rating i { color: #f5a623; font-size: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.testimonial-author img { width: 60px; height: 60px; object-fit: cover; }
.testimonial-author h6 { margin: 0; font-family: 'Roboto', sans-serif; font-weight: 500; }

/* ---------- BLOG ---------- */
.blog-card { border-radius: 12px !important; overflow: hidden; height: 100%; }
.blog-card .card-image img { aspect-ratio: 16/10; object-fit: cover; }
.blog-card .card-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; }

/* ---------- CONTACT ---------- */
.contact-info { padding: 20px 0; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.contact-item i {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item a { color: var(--primary); }
.contact-form { border-radius: 12px; }
.contact-form .input-field input:focus,
.contact-form .input-field textarea:focus {
  border-bottom: 1px solid var(--primary) !important;
  box-shadow: 0 1px 0 0 var(--primary) !important;
}
.contact-form .input-field input:focus + label,
.contact-form .input-field textarea:focus + label { color: var(--primary) !important; }

/* ---------- FOOTER ---------- */
.site-footer { background: #1a1a1a; color: #fff; padding: 60px 0 0; }
.site-footer h5 { font-family: 'Playfair Display', serif; margin-bottom: 16px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff; margin: 0 4px;
  transition: all 0.3s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-copyright {
  background: #0f0f0f; padding: 20px 0; margin-top: 40px;
  text-align: center; color: rgba(255,255,255,0.6); font-size: 0.9rem;
}

/* ---------- BACK TO TOP ---------- */
#backToTop {
  position: fixed; bottom: 30px; right: 30px;
  opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 998;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- FADE IN ---------- */
.fade-in { opacity: 0; animation: fadeInUp 1s ease forwards; }
.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- LAZY LOAD ---------- */
.lazy { opacity: 0; transition: opacity 0.5s; }
.lazy.loaded { opacity: 1; }

/* ---------- BUTTONS ---------- */
.btn, .btn-large, .btn-floating, .btn-small {
  text-transform: none;
  letter-spacing: 0.5px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-floating { border-radius: 50%; }
.btn:hover, .btn-large:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
