/* ==========================================================================
   Theme 2: Modern SaaS & Vibrant Energy
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
   /* Core Colors */
   --bg-body: #F4F7FE;
   --bg-surface: #FFFFFF;
   --bg-dark: #0B1437;
   /* For Header/Footer to contrast white logo */
   --bg-dark-secondary: #111C44;

   --primary: #4318FF;
   /* Electric Blue */
   --primary-hover: #3311DB;
   --secondary: #FF3366;
   /* Vibrant Pink/Red */
   --accent: #FFD166;
   /* Sunset Yellow */

   --text-dark: #2B3674;
   --text-body: #A3AED0;
   --text-light: #FFFFFF;
   --text-muted: #8F9BBA;

   --border-color: #E2E8F0;
   --success: #05CD99;

   /* Layout */
   --container: 1200px;
   --section-pad: 7rem 2rem;
   --radius-sm: 8px;
   --radius-md: 16px;
   --radius-lg: 24px;
   --radius-pill: 50px;

   /* Shadows */
   --shadow-sm: 0 4px 12px rgba(11, 20, 55, 0.05);
   --shadow-md: 0 10px 30px rgba(11, 20, 55, 0.08);
   --shadow-glow: 0 10px 25px rgba(67, 24, 255, 0.3);

   /* Transitions */
   --trans-fast: 0.2s ease;
   --trans-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
   --trans-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: 'Open Sans', sans-serif;
   background-color: var(--bg-body);
   color: var(--text-body);
   line-height: 1.7;
   overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: 'Poppins', sans-serif;
   color: var(--text-dark);
   font-weight: 700;
   line-height: 1.2;
}

p {
   margin-bottom: 1rem;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--trans-base);
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

.container {
   max-width: var(--container);
   margin: 0 auto;
   padding: 0 1.5rem;
   position: relative;
}

.section-title {
   font-size: 2.8rem;
   text-align: center;
   margin-bottom: 1rem;
   color: var(--text-dark);
}

.section-subtitle {
   text-align: center;
   font-size: 1.1rem;
   max-width: 600px;
   margin: 0 auto 4rem auto;
   color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1rem 2rem;
   border-radius: var(--radius-pill);
   font-family: 'Poppins', sans-serif;
   font-weight: 600;
   cursor: pointer;
   transition: var(--trans-bounce);
   border: none;
   font-size: 1rem;
   position: relative;
   overflow: hidden;
   z-index: 1;
}

.btn-primary {
   background: var(--primary);
   color: var(--text-light);
   box-shadow: var(--shadow-glow);
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
   transition: all 0.6s ease;
   z-index: -1;
}

.btn-primary:hover::before {
   left: 100%;
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 35px rgba(67, 24, 255, 0.4);
}

.btn-secondary {
   background: var(--bg-surface);
   color: var(--primary);
   box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
   background: var(--primary);
   color: var(--text-light);
   transform: translateY(-3px);
}

/* ==========================================================================
   Strict Header (Dark to contrast white logo)
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   width: 100%;
   background-color: var(--bg-dark);
   z-index: 1000;
   transition: var(--trans-base);
   padding: 1.2rem 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
   padding: 0.8rem 0;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo-container img {
   height: 45px;
   filter: invert(1);
}

.nav-menu {
   display: flex;
   gap: 2.5rem;
   align-items: center;
}

.nav-link {
   color: var(--text-light);
   font-family: 'Poppins', sans-serif;
   font-weight: 500;
   font-size: 0.95rem;
   position: relative;
   padding: 0.5rem 0;
}

.nav-link::before {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0%;
   height: 2px;
   background: var(--secondary);
   transition: var(--trans-base);
}

.nav-link:hover::before,
.nav-link.active::before {
   width: 100%;
}

.mobile-menu-btn {
   display: none;
   background: none;
   border: none;
   color: var(--text-light);
   font-size: 1.8rem;
   cursor: pointer;
}

/* ==========================================================================
   1. Hero Section (Isometric & Vibrant)
   ========================================================================== */
.hero {
   padding: 12rem 0 8rem;
   position: relative;
   overflow: hidden;
   background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-body) 100%);
}

.hero::after {
   content: '';
   position: absolute;
   top: -10%;
   right: -5%;
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, rgba(67, 24, 255, 0.08) 0%, transparent 70%);
   border-radius: 50%;
   z-index: 0;
}

.hero-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   position: relative;
   z-index: 1;
}

.hero-content h1 {
   font-size: 4rem;
   margin-bottom: 1.5rem;
   line-height: 1.1;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-content p {
   font-size: 1.2rem;
   margin-bottom: 2.5rem;
   animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
   opacity: 0;
}

.hero-buttons {
   display: flex;
   gap: 1rem;
   animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
   opacity: 0;
}

/* Advanced 3D Isometric Hero Visual */
.hero-visual {
   position: relative;
   height: 500px;
   perspective: 1200px;
}

.iso-container {
   position: absolute;
   width: 100%;
   height: 100%;
   transform-style: preserve-3d;
   transform: rotateX(20deg) rotateY(-25deg);
   animation: floatIso 8s ease-in-out infinite alternate;
}

.iso-layer {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 300px;
   height: 200px;
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   box-shadow: -15px 20px 30px rgba(11, 20, 55, 0.15);
   border: 1px solid var(--border-color);
   padding: 1.5rem;
   transform-style: preserve-3d;
}

.iso-1 {
   transform: translate(-50%, -50%) translateZ(0px);
}

.iso-2 {
   transform: translate(-30%, -70%) translateZ(80px);
   background: linear-gradient(135deg, var(--primary), #7551FF);
   color: white;
}

.iso-3 {
   transform: translate(-70%, -30%) translateZ(160px);
   background: linear-gradient(135deg, var(--secondary), #FF6B8B);
   color: white;
}

.iso-layer h4 {
   font-size: 1.2rem;
   margin-bottom: 0.5rem;
   color: inherit;
}

.iso-layer .bar {
   height: 8px;
   border-radius: 4px;
   background: rgba(255, 255, 255, 0.3);
   margin-bottom: 8px;
}

.iso-1 .bar {
   background: var(--bg-body);
}

/* ==========================================================================
   2. Stats Section
   ========================================================================== */
.stats {
   padding: 3rem 0;
   background: var(--bg-surface);
   position: relative;
   z-index: 2;
   box-shadow: var(--shadow-sm);
   margin-top: -3rem;
   border-radius: var(--radius-lg);
   max-width: var(--container);
   margin-left: auto;
   margin-right: auto;
}

.stats-grid {
   display: flex;
   justify-content: space-around;
   text-align: center;
   flex-wrap: wrap;
   gap: 2rem;
}

.stat-item h3 {
   font-size: 2.8rem;
   color: var(--primary);
   margin-bottom: 0.2rem;
   font-weight: 800;
}

.stat-item p {
   color: var(--text-dark);
   font-weight: 600;
   margin: 0;
}

/* ==========================================================================
   3. About Section
   ========================================================================== */
.about {
   padding: var(--section-pad);
}

.about-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.about-visual {
   position: relative;
   border-radius: var(--radius-lg);
   padding: 2rem;
   background: var(--bg-surface);
   box-shadow: var(--shadow-md);
}

.about-visual::before {
   content: '';
   position: absolute;
   top: -20px;
   left: -20px;
   width: 100px;
   height: 100px;
   background: var(--accent);
   border-radius: 50%;
   z-index: -1;
}

.about-content h2 {
   margin-bottom: 1.5rem;
}

/* ==========================================================================
   4. Services (Modern Lift Cards)
   ========================================================================== */
.services {
   padding: var(--section-pad);
   background: var(--bg-surface);
}

.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2.5rem;
}

.service-card {
   background: var(--bg-body);
   padding: 3rem 2rem;
   border-radius: var(--radius-lg);
   transition: var(--trans-bounce);
   position: relative;
   z-index: 1;
   border: 1px solid transparent;
}

.service-card::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 0;
   background: var(--primary);
   border-radius: var(--radius-lg);
   transition: var(--trans-base);
   z-index: -1;
}

.service-card:hover {
   transform: translateY(-15px);
   border-color: var(--primary);
   box-shadow: var(--shadow-glow);
}

.service-card:hover h3,
.service-card:hover p {
   color: var(--text-light);
}

.service-card:hover .service-icon {
   background: rgba(255, 255, 255, 0.2);
   color: var(--text-light);
}

.service-card:hover::after {
   height: 100%;
}

.service-icon {
   width: 70px;
   height: 70px;
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--primary);
   margin-bottom: 2rem;
   box-shadow: var(--shadow-sm);
   transition: var(--trans-base);
}

.service-card h3 {
   font-size: 1.4rem;
   margin-bottom: 1rem;
   transition: var(--trans-base);
}

.service-card p {
   transition: var(--trans-base);
   margin: 0;
}

/* ==========================================================================
   5. Calculator Section
   ========================================================================== */
.calculator-section {
   padding: var(--section-pad);
}

.calc-box {
   max-width: 750px;
   margin: 0 auto;
   background: var(--bg-surface);
   padding: 4rem;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-md);
   text-align: center;
}

.range-slider {
   width: 100%;
   -webkit-appearance: none;
   height: 10px;
   border-radius: 5px;
   background: var(--border-color);
   outline: none;
   margin: 2rem 0;
}

.range-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   appearance: none;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   background: var(--secondary);
   cursor: pointer;
   box-shadow: 0 4px 10px rgba(255, 51, 102, 0.4);
   transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:active {
   transform: scale(1.2);
}

.calc-result {
   background: rgba(5, 205, 153, 0.1);
   padding: 2rem;
   border-radius: var(--radius-md);
   border: 1px dashed var(--success);
}

.calc-result h4 {
   font-size: 3rem;
   color: var(--success);
   margin-top: 0.5rem;
}

/* ==========================================================================
   6. Industries
   ========================================================================== */
.industries {
   padding: var(--section-pad);
   background: var(--bg-surface);
}

.industry-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 1.5rem;
}

.industry-card {
   padding: 2.5rem 1.5rem;
   background: var(--bg-body);
   border-radius: var(--radius-md);
   text-align: center;
   transition: var(--trans-base);
   cursor: pointer;
}

.industry-card:hover {
   background: var(--text-dark);
   color: var(--text-light);
   transform: scale(1.05);
}

.industry-card:hover h4 {
   color: var(--text-light);
}

.industry-card svg {
   margin-bottom: 1rem;
   color: var(--accent);
}

/* ==========================================================================
   7. Animated Reporting Chart (CSS Only)
   ========================================================================== */
.reports {
   padding: var(--section-pad);
}

.chart-wrapper {
   background: var(--bg-surface);
   padding: 3rem;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-md);
   max-width: 900px;
   margin: 0 auto;
   height: 400px;
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 10px;
   position: relative;
   border-bottom: 2px solid var(--border-color);
   border-left: 2px solid var(--border-color);
}

.chart-bar {
   flex: 1;
   background: linear-gradient(to top, var(--primary), var(--secondary));
   border-radius: var(--radius-sm) var(--radius-sm) 0 0;
   position: relative;
   transform-origin: bottom;
   animation: scaleUpY 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
   opacity: 0;
}

.chart-bar:nth-child(1) {
   animation-delay: 0.2s;
   height: 30%;
}

.chart-bar:nth-child(2) {
   animation-delay: 0.4s;
   height: 50%;
}

.chart-bar:nth-child(3) {
   animation-delay: 0.6s;
   height: 75%;
}

.chart-bar:nth-child(4) {
   animation-delay: 0.8s;
   height: 100%;
}

.chart-bar::before {
   content: attr(data-month);
   position: absolute;
   bottom: -35px;
   left: 50%;
   transform: translateX(-50%);
   font-weight: 600;
   color: var(--text-dark);
}

.chart-bar::after {
   content: attr(data-value);
   position: absolute;
   top: -30px;
   left: 50%;
   transform: translateX(-50%);
   background: var(--text-dark);
   color: white;
   padding: 2px 8px;
   border-radius: 4px;
   font-size: 0.8rem;
   opacity: 0;
   transition: var(--trans-base);
}

.chart-bar:hover::after {
   opacity: 1;
   top: -40px;
}

/* ==========================================================================
   8. Testimonials
   ========================================================================== */
.testimonials {
   padding: var(--section-pad);
   background: var(--bg-dark-secondary);
   color: var(--text-light);
}

.testimonials .section-title {
   color: var(--text-light);
}

.testimonials .section-subtitle {
   color: var(--text-muted);
}

.testi-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 2rem;
}

.testi-card {
   background: var(--bg-dark);
   padding: 2.5rem;
   border-radius: var(--radius-lg);
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.testi-card p {
   font-size: 1.1rem;
   font-style: italic;
   margin-bottom: 2rem;
}

.testi-author {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.author-img {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--secondary);
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   color: white;
}

.author-info h5 {
   color: white;
   margin: 0;
}

.author-info span {
   font-size: 0.85rem;
   color: var(--text-muted);
}

/* ==========================================================================
   9. CTA Form
   ========================================================================== */
.cta-section {
   padding: var(--section-pad);
   text-align: center;
}

.cta-form {
   max-width: 600px;
   margin: 3rem auto 0;
   background: var(--bg-surface);
   padding: 3rem;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-md);
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.form-group input,
.form-group textarea {
   width: 100%;
   padding: 1.2rem;
   border: 1px solid var(--border-color);
   border-radius: var(--radius-sm);
   background: var(--bg-body);
   font-family: inherit;
   font-size: 1rem;
   color: var(--text-dark);
   transition: var(--trans-fast);
}

.form-group input:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

.form-group textarea {
   resize: vertical;
   min-height: 150px;
}

/* ==========================================================================
   10. Strict Footer
   ========================================================================== */
.site-footer {
   background-color: var(--bg-dark);
   padding: 5rem 0 2rem;
   color: var(--text-muted);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 4rem;
   margin-bottom: 4rem;
}

.footer-col h4 {
   color: var(--text-light);
   margin-bottom: 1.5rem;
   font-size: 1.2rem;
}

.footer-logo img {
   height: 50px;
   filter: invert(1);
   margin-bottom: 1.5rem;
}

.footer-col p {
   font-size: 0.95rem;
}

.footer-links li {
   margin-bottom: 0.8rem;
}

.footer-links a:hover {
   color: var(--secondary);
   padding-left: 8px;
}

.footer-bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   font-size: 0.9rem;
}

/* ==========================================================================
   11. Live Chat
   ========================================================================== */
.chat-widget {
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   z-index: 999;
}

.chat-btn {
   width: 65px;
   height: 65px;
   border-radius: 50%;
   background: var(--primary);
   color: white;
   border: none;
   cursor: pointer;
   box-shadow: var(--shadow-glow);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--trans-bounce);
}

.chat-btn:hover {
   transform: scale(1.1);
   background: var(--primary-hover);
}

.chat-panel {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 320px;
   background: var(--bg-surface);
   border-radius: var(--radius-lg);
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
   display: none;
   flex-direction: column;
   overflow: hidden;
   border: 1px solid var(--border-color);
}

.chat-panel.active {
   display: flex;
   animation: fadeUp 0.3s ease;
}

.chat-head {
   background: var(--primary);
   padding: 1.2rem;
   color: white;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.chat-head h4 {
   color: white;
   margin: 0;
   font-size: 1rem;
}

.close-chat {
   background: none;
   border: none;
   color: white;
   font-size: 1.5rem;
   cursor: pointer;
}

.chat-body {
   height: 250px;
   padding: 1rem;
   background: var(--bg-body);
   overflow-y: auto;
}

.chat-bubble {
   background: white;
   padding: 0.8rem 1rem;
   border-radius: var(--radius-md);
   margin-bottom: 1rem;
   box-shadow: var(--shadow-sm);
   font-size: 0.9rem;
   color: var(--text-dark);
}

.chat-foot {
   display: flex;
   padding: 1rem;
   background: white;
   border-top: 1px solid var(--border-color);
}

.chat-foot input {
   flex: 1;
   border: none;
   outline: none;
   padding: 0.5rem;
   background: var(--bg-body);
   border-radius: var(--radius-sm);
}

.chat-foot button {
   background: var(--primary);
   color: white;
   border: none;
   padding: 0.5rem 1rem;
   margin-left: 0.5rem;
   border-radius: var(--radius-sm);
   cursor: pointer;
}

/* ==========================================================================
   Legal Pages Style Additions
   ========================================================================== */
.legal-wrapper {
   padding: 12rem 0 6rem;
   background: var(--bg-surface);
   min-height: 100vh;
}

.legal-box {
   background: var(--bg-body);
   padding: 4rem;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-sm);
}

.legal-box h1 {
   font-size: 2.5rem;
   color: var(--primary);
   margin-bottom: 2rem;
   border-bottom: 2px solid var(--border-color);
   padding-bottom: 1rem;
}

.legal-box h2 {
   font-size: 1.4rem;
   margin: 2rem 0 1rem;
   color: var(--text-dark);
}

.legal-box ul {
   list-style: disc;
   margin-left: 2rem;
   margin-bottom: 1.5rem;
}

.legal-box li {
   margin-bottom: 0.5rem;
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
@keyframes fadeUp {
   from {
      opacity: 0;
      transform: translateY(40px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes scaleUpY {
   from {
      opacity: 0;
      transform: scaleY(0);
   }

   to {
      opacity: 1;
      transform: scaleY(1);
   }
}

@keyframes floatIso {
   0% {
      transform: rotateX(20deg) rotateY(-25deg) translateY(0);
   }

   100% {
      transform: rotateX(20deg) rotateY(-25deg) translateY(-30px);
   }
}

.reveal {
   opacity: 0;
   transform: translateY(50px);
   transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

@media (max-width: 992px) {

   .hero-grid,
   .about-grid {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .hero-content h1 {
      font-size: 3rem;
   }

   .hero-buttons {
      justify-content: center;
   }

   .hero-visual {
      display: none;
   }

   /* Hide complex 3D on mobile for performance/space */
   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }

   .stats {
      margin-top: 0;
      padding: 2rem;
   }
}

@media (max-width: 768px) {
   .nav-menu {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background: var(--bg-dark);
      flex-direction: column;
      justify-content: center;
      transition: var(--trans-base);
   }

   .nav-menu.active {
      left: 0;
   }

   .mobile-menu-btn {
      display: block;
   }

   .footer-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
   }

   .chart-wrapper {
      height: auto;
      flex-direction: column;
      align-items: stretch;
      padding: 1.5rem;
   }

   .chart-bar {
      height: 40px !important;
      width: 0;
      animation: scaleUpX 1.5s forwards;
      transform-origin: left;
      margin-bottom: 2rem;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
   }

   .chart-bar::before {
      left: 0;
      top: -25px;
      bottom: auto;
      transform: none;
   }

   .chart-bar::after {
      top: 5px;
      right: 10px;
      left: auto;
      transform: none;
      opacity: 1;
   }

   .legal-box {
      padding: 2rem;
   }
}

@keyframes scaleUpX {
   from {
      width: 0;
      opacity: 0;
   }

   to {
      width: 100%;
      opacity: 1;
   }

   /* Width controlled by inline JS on mobile ideally, but kept simple here */
}