/*
Theme Name: Funloft
Description: Custom theme for Funloft (white design)
Version: 1.1
Text Domain: funloft
*/

:root {
  --primary: #008efe;
  --secondary: #4a43c9;
  --light: #f8f9fa;
  --dark: #212529;
  --accent: #ff6b6b;
}

html, body {
  background: #ffffff;
  color: #444;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--dark); }

/* Navbar */
.navbar { padding: 15px 0; transition: all .3s ease; }
.navbar-brand { font-weight: 700; font-size: 24px; color: var(--primary); }
.navbar .nav-link { font-weight: 500; margin: 0 10px; transition: all .3s ease; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--primary); }

/* Hero */
.hero {
  /*background-size: cover; background-position: center;*/
  padding: 150px 0 100px; color: #fff;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary); border-color: var(--primary);
  padding: 12px 30px; border-radius: 30px; font-weight: 600; transition: all .3s ease;
}
.btn-primary:hover {
  background-color: var(--secondary); border-color: var(--secondary);
  transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

/* Sections */
.section-padding { padding: 100px 0; }
.section-title { margin-bottom: 60px; position: relative; display:inline-block; }
.section-title::after {
  content:''; position:absolute; left:0; bottom:-15px; width:50px; height:3px; background: var(--primary);
}

/* Service cards */
.service-card {
  padding: 30px; border-radius: 10px; height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: all .3s ease; border: 1px solid #eee; background:#fff;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,.1); border-color: var(--primary); }
.service-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; }

/* Team */
.team-member { text-align: center; margin-bottom: 30px; }
.team-img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px;
  border:5px solid #fff; box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.social-icons { margin-top: 15px; }
.social-icons a {
  display:inline-block; width:35px; height:35px; line-height:35px; text-align:center;
  background: var(--primary); color:#fff; border-radius:50%; margin:0 5px; transition: all .3s ease;
}
.social-icons a:hover { background: var(--secondary); transform: translateY(-3px); }

/* Products */
.product-card {
  border:none; border-radius:10px; overflow:hidden; background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: all .3s ease; margin-bottom: 30px;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,.1); }
.product-img { height: 200px; object-fit: cover; }

/* CTA parallax */
.cta-section {
  background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)),
              url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1500&q=80');
  background-size: cover; background-position: center; background-attachment: fixed;
  padding: 100px 0; color:#fff;
}

/* Footer (dark) */
.footer { background: var(--dark); color:#fff; padding: 80px 0 30px; }
.footer a { color:#ddd; transition: all .3s ease; }
.footer a:hover { color: var(--primary); }
.footer-title { color:#fff; margin-bottom:25px; position:relative; }
.footer-title::after { content:''; position:absolute; left:0; bottom:-10px; width:30px; height:2px; background: var(--primary); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  background: var(--primary); color:#fff; border-radius: 50%;
  display:flex; align-items:center; justify-content:center; text-decoration:none;
  opacity:0; transition: all .3s ease; z-index: 999; transform: translateY(10px);
}
.back-to-top.show { opacity:1; transform: translateY(0); }

/* ===== Nav polish ===== */
.navbar-brand { font-weight: 700; font-size: 24px; color: var(--primary); }
.navbar-brand:hover { color: var(--secondary); }

.navbar .nav-link {
  position: relative;
  font-weight: 600;
  color: #333;
  border-radius: .5rem;
  transition: color .2s ease;
}
.navbar .nav-link:hover { color: var(--primary); }

/* Hover/active underline */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar .nav-link:hover::after { transform: scaleX(1); }

/* Mark current page in menu */
.navbar .current-menu-item > .nav-link,
.navbar .current_page_parent > .nav-link {
  color: var(--primary);
}
.navbar .current-menu-item > .nav-link::after,
.navbar .current_page_parent > .nav-link::after {
  transform: scaleX(1);
}

/* Optional: turn one item (e.g., AI Ad Videos) into a pill button */
.navbar .menu-cta > a.nav-link {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: .5rem 1rem;
  line-height: 1;
}
.navbar .menu-cta > a.nav-link:hover {
  background: var(--secondary);
  color: #fff;
}
.navbar .menu-cta > a.nav-link::after { display: none; } /* no underline on the pill */

/* Mobile tidy-up */
@media (max-width: 991.98px){
  .navbar .nav-link { padding: .6rem 0; }
  .navbar .menu-cta > a.nav-link { width: 100%; text-align: center; margin-top: .25rem; }
}

/* Keep navbar white at all times */
.navbar {
  background: #0A2C49 !important;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
  transition: none; /* no animated color changes */
}

/* Ensure links are readable on white */
.navbar .nav-link { color: #fff; }
.navbar .nav-link:hover { color: var(--primary); }

/* Make sure the toggler icon is visible on white */
.navbar-light .navbar-toggler {
  border-color: rgba(0,0,0,.1);
}
.navbar-light .navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg);
}
