/* =========================
   Gorai Tech - style.css (UPDATED)
   - Fixed invalid CSS blocks/comments
   - Fixed extra curly braces
   - Improved background slider for 5 slides
   - Added premium Portfolio marquee (fade edges + draggable support)
========================= */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  overflow-x: hidden;
}

/* =========================
   Background Slider
========================= */
.background-slider {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: fade 30s infinite;
}

/* One slide visible for ~20% of time, then fades out */
@keyframes fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* 5 slides, 6s delay each (30s total) */
.background-slider .slide:nth-child(1) { animation-delay: 0s; }
.background-slider .slide:nth-child(2) { animation-delay: 6s; }
.background-slider .slide:nth-child(3) { animation-delay: 12s; }
.background-slider .slide:nth-child(4) { animation-delay: 18s; }
.background-slider .slide:nth-child(5) { animation-delay: 24s; }

/* =========================
   Navbar
========================= */
.navbar {
  position: fixed;
  width: 100%;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFE5CC;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: darkred;
}

.logo img {
  width: 50px;
  height: auto;
  object-fit: contain;
}

/* Navigation */
.navbar nav {
  display: flex;
  gap: 20px;
}

.navbar nav a {
  color: darkred;
  text-decoration: none;
  font-weight: 500;
  padding: 8px;
  transition: color 0.3s ease, text-shadow 0.3s ease, font-size 0.3s ease;
}

.navbar nav a:hover {
  color: teal;
  font-size: 19px;
  text-shadow:
    0 0 5px rgba(0,255,255,0.8),
    0 0 10px rgba(0,255,255,0.6);
}

/* =========================
   Hero Section (if used)
========================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.hero-text h1 {
  font-size: 50px;
  color: white;
  text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.hero-text p {
  margin: 15px 0;
  font-size: 18px;
  color: #e6faff;
}

.btn {
  padding: 12px 25px;
  background: #00e0ff;
  color: #003742;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   Sections
========================= */
.section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: white;
}

/* =========================
   Service Cards
========================= */
.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.service-card {
  padding: 25px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* =========================
   About Section
========================= */
.dark {
  background: #003742;
  color: white;
}

.about-text {
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
  font-size: 18px;
}

/* =========================
   Contact
========================= */
.contact-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.contact-box {
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-size: 16px;
  max-width: 520px;
  margin: auto;
}

.contact-box p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.map-box {
  flex: 1;
  min-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* =========================
   Footer
========================= */
.footer {
  background: green;
  color: white;
  text-align: center;
  padding: 15px 10px;
}

.footer a.footer-link {
  color: #ffd166;
  text-decoration: none;
  font-weight: 500;
}

.footer a.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =========================
   Floating FAQ Button
========================= */
.faq-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: red;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: pulse 2s infinite;
}

.faq-float:hover {
  background: #145da0;
  transform: scale(1.1);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(11,60,93,0.6); }
  70%  { box-shadow: 0 0 0 15px rgba(11,60,93,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,60,93,0); }
}

/* =========================
   Service list paragraph tweak (if used)
========================= */
.service-list p {
  margin: 8px 0;
  font-size: 16px;
  color: green;
}

/* =========================
   Left Side Social Icons
========================= */
.icons {
  margin: 2px;
  position: fixed;
  top: 75%;
  left: 0%;
  width: 240px;
  display: flex;
  flex-direction: column;
  background-color: transparent !important;
  z-index: 20; /* above sections */
}

.icons a {
  text-decoration: none;
  padding: 5px;
  font-size: 22px;
  font-family: 'Oswald', sans-serif;
  text-align: right;
  border-radius: 0px 50px 50px 0px;
  transform: translate(-200px, 0px);
  transition: all 0.5s;
  text-transform: uppercase;
}

.icons a:hover {
  transform: translate(0px, 0px);
}

.icons a:hover span {
  transform: rotate(360deg);
}

.icons a span {
  background-color: white;
  margin-left: 20px;
  height: 40px;
  width: 40px;
  color: black;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: all 0.5s;
}

.facebook { background-color: #2c80d3; color: #fff; }
.youtube  { background-color: #fa0910; color: #fff; }
.twitter  { background-color: #53c5ff; color: #fff; }
.linkedin { background-color: #007bb5; color: #fff; }
.WhatsApp { background-color: green;  color: #fff; }

/* =========================
   Gallery (if used somewhere)
========================= */
div.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  float: left;
  width: 180px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

div.gallery:hover {
  border: 1px solid #777;
  transform: scale(1.06);
}

div.gallery img {
  width: 100%;
  height: 100%;
}

div.desc {
  padding: 15px;
  text-align: center;
}

/* =========================
   Portfolio Marquee Showcase (Your new section)
========================= */
#portfolio.in {
  animation: pfFadeUp .7s ease both;
}

@keyframes pfFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-subtitle {
  text-align: center;
  opacity: .9;
  margin-top: -10px;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
}

#portfolio.section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.pf-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 10px 0;
  backdrop-filter: blur(6px);
}

/* Premium fade edges */
.pf-marquee::before,
.pf-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.pf-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(245,247,250,1), rgba(245,247,250,0));
}

.pf-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(245,247,250,1), rgba(245,247,250,0));
}

.pf-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 10px 14px;
  animation: pfScroll 26s linear infinite;
  will-change: transform;
}

.pf-marquee.paused .pf-track {
  animation-play-state: paused;
}

@keyframes pfScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* If you enable draggable scroll in JS */
.pf-marquee.pf-draggable {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.pf-marquee::-webkit-scrollbar { display: none; }

.pf-item {
  width: 320px;
  min-width: 320px;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  outline: none;
}

.pf-item:hover,
.pf-item:focus {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}

.pf-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease;
}

.pf-item:hover .pf-thumb img {
  transform: scale(1.08);
}

.pf-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.pf-meta {
  padding: 12px 14px 14px;
}

.pf-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.pf-desc {
  font-size: 13px;
  opacity: .9;
  line-height: 1.5;
  height: 40px;
  overflow: hidden;
  color: #fff;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pf-tags span {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

/* Portfolio buttons */
.btn-portfolio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
  transition: transform .2s ease, background .2s ease;
}

.btn-portfolio:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.22);
}

.btn-portfolio.outline { background: transparent; }
.btn-portfolio.large { padding: 12px 18px; border-radius: 14px; }

.portfolio-more {
  text-align: center;
  margin-top: 16px;
}

/* Modal */
.pf-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.pf-modal.open { display: block; }

.pf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}

.pf-modal-box {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 6vh auto 0;
  border-radius: 18px;
  background: #0b1220;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  padding: 14px;
  animation: pfPop .18s ease both;
}

@keyframes pfPop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pf-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.pf-modal-box img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 360px;
}

.pf-modal-box h3 {
  margin: 12px 6px 6px;
}

.pf-modal-box p {
  margin: 0 6px 12px;
  opacity: .9;
  line-height: 1.7;
}

.pf-modal-actions {
  display: flex;
  gap: 10px;
  padding: 0 6px 6px;
  flex-wrap: wrap;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .navbar { padding: 12px 18px; }
  .logo span { font-size: 18px; }
  .navbar nav { gap: 12px; }
  .hero-text h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  .contact-container { flex-direction: column; }
  .map-box iframe { height: 300px; }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }

  .hero { height: 70vh; }

  .section {
    height: auto;
    padding: 50px 20px;
  }

  .logo { font-size: 16px; }
  .logo img { width: 40px; }

  .navbar nav { gap: 10px; }
  .navbar nav a { font-size: 14px; padding: 5px; }

  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 16px; }

  .section-title { font-size: 26px; }

  .service-card { padding: 18px; }
}

@media (max-width: 480px) {
  .pf-item { width: 280px; min-width: 280px; }
  .pf-track { animation-duration: 38s; }
}
