/* style.css - FONCKORP Premium Aesthetics */

:root {
  --bg-color: #05050a;
  --text-color: #f0f0f0;
  --text-muted: #a0a0a5;
  --primary: #8a2be2; /* Neon Purple */
  --secondary: #00d2ff; /* Neon Blue */
  --accent: #ff007f; /* Neon Pink */
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

/* Accessibility Focus */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
}

#navbar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.logo img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
  z-index: -1;
}

/* Hero Canvas Particle Effect */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

/* Services Section */
.services {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.3));
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) translateY(-5px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About / Stats Section */
.about {
  padding: 8rem 5%;
  background: linear-gradient(180deg, var(--bg-color), #0a0a14);
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1 1 500px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.guarantee-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    flex-shrink: 0;
}

.guarantee-text strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.guarantee-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.3);
}

.quote-icon {
    font-size: 5rem;
    color: var(--primary);
    line-height: 1;
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: #fff;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
  background: #030305;
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h3, .footer-links h4 {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile menu handling */
  }
  
  .hero-content {
    margin-top: 4rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* All Services Carousel */
.all-services {
  padding: 5rem 5% 8rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.servicesSwiper {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.servicesSwiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.slide-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.slide-content:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.3);
}

.slide-content:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  text-align: left;
}

.slide-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.carousel-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--primary) !important;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px var(--primary);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float-pulse 2s infinite;
    will-change: transform;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes float-pulse {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
}

.chatbot-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--primary);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.chatbot-toggle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2s infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 90px;
    left: 0;
    width: 350px;
    height: 500px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom left;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.chat-title h4 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.chat-title span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.chatbot-close:hover {
    transform: scale(1.2);
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
}

.chat-body::-webkit-scrollbar {
    width: 5px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: msg-appear 0.3s ease forwards;
}

@keyframes msg-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg.bot {
    background: var(--glass-border);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.msg.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: var(--glass-border);
    border-radius: 15px;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-color);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
}

.chat-option-btn:hover {
    background: rgba(138, 43, 226, 0.2);
}

.chat-action-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s;
    display: block;
}

.chat-action-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 4rem);
        height: 450px;
    }
}
