/* --- Global Styles & Variables --- */
:root {
  --bg-light: #fdf5ff;
  --bg-dark: #000000;
  --text-dark: #0f172a; /* slate-900 */
  --text-light: #ffffff;
  --text-muted: #475569; /* slate-600 */
  --accent-yellow: #f59e0b;
  --primary-gradient: #2575fc;
  --funky-gradient: linear-gradient(90deg, #ff7e5f, #feb47b, #ff7e5f);
  --font-family: "Poppins", sans-serif;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #0f172a;
  color: var(--text-dark);
  line-height: 1.6;
}

/* css/sections.css */
.hero {
  padding: 12rem 0 8rem 0;
  text-align: center;
  background: transparent; /* CHANGE this */
}

/* ... hero-title styles ... */

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 768px;
  margin: 0 auto 2.5rem auto;
  color: #e2e8f0; /* CHANGE to a light slate color */
  font-weight: 500;
}

/* Add this to components.css */

/* --- Particle Background --- */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* This is crucial to keep it in the background */
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.help-icon:hover {
  background-color: var(--accent-yellow);
  color: white;
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* --- NOXLAY UNIQUE AUTH STYLES --- */

/* 1. Header Login Button */
.nox-login-trigger-btn {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px; /* Capsule shape */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nox-login-trigger-btn:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* User Logged In Buttons */
.nox-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: 0.3s;
}
.nox-user-btn:hover { background: #e2e8f0; }

.nox-logout-btn {
    color: #ef4444; /* Red color for logout */
    padding: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* --- LOGIN BUTTON ICON STYLES --- */
.nox-login-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px; /* ஐகானுக்கும் எழுத்துக்கும் இடைவெளி */
}

/* --- CREATE BUTTON RESPONSIVE STYLES --- */

/* Desktop: ஐகான் தெரியக்கூடாது, டெக்ஸ்ட் மட்டும் தெரியும் */
.mobile-create-icon {
    display: none; 
}

/* Mobile View (Max Width 768px) */
@media (max-width: 768px) {
    
    /* 1. டெக்ஸ்டை மறைத்துவிடு */
    .create-free-text {
        display: none;
    }
    .header-controls{
      gap: 10px;
    }
    .nox-login-trigger-btn{
      padding: 8px 10px;
      font-size: 12px;
    }

    /* 2. ஐகானைக் காட்டு */
    .mobile-create-icon {
        display: block;
        font-size: 1.2rem;
    }

    /* 3. பட்டன் வடிவத்தை மாற்றுதல் (வட்டமாக அல்லது சதுரமாக) */
    .header-btn {
        padding: 10px 14px; /* அளவு */
        border-radius: 50px; /* வளைவான வடிவம் */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 2. Modal Overlay */
.nox-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark dimmed background */
    backdrop-filter: blur(5px); /* Blur effect behind modal */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nox-auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 3. Modal Box */
.nox-auth-box {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
}

.nox-auth-overlay.active .nox-auth-box {
    transform: scale(1);
}

/* Close Button */
.nox-auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.nox-auth-close:hover { color: #000; }

/* Typography */
.nox-auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
    text-align: center;
}

.nox-auth-subtitle {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form Elements */
.nox-input-group {
    margin-bottom: 1.2rem;
}

.nox-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.nox-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.nox-input-group input:focus {
    border-color: #000; /* Highlight color */
    background: #fff;
}

/* OTP Wrapper */
.nox-otp-wrapper {
    display: flex;
    gap: 8px;
}

.nox-otp-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.nox-otp-btn:hover { background: #334155; }

/* Messages */
.nox-msg-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Submit Button */
.nox-auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%); /* Elegant Dark Gradient */
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nox-auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4);
}

/* Footer Links */
.nox-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.nox-auth-footer span {
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    margin: 0 5px;
    text-decoration: none;
}
.nox-auth-footer span:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 480px) {
    .nox-auth-box {
        width: 90%;
        padding: 1.5rem;
    }
    .nox-auth-title { font-size: 1.5rem; }
}

/* --- USER PROFILE DROPDOWN STYLES --- */

.nox-user-dropdown-container {
    position: relative;
    display: inline-block;
}

.nox-user-avatar {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #334155;
}

.nox-user-avatar:hover {
    background-color: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* The Dropdown Box */
.nox-dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #f1f5f9;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.nox-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header inside dropdown (Name + Email) */
.nox-menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.nox-menu-avatar-circle {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.nox-menu-details {
    display: flex;
    flex-direction: column;
}

.nox-menu-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.nox-menu-email {
    font-size: 0.6rem;
    color: #64748b;
    word-break: break-all;
}

/* Dropdown Items */
.nox-dropdown-menu hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 10px 0;
}

.nox-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.nox-menu-item i {
    width: 20px;
    text-align: center;
}

.nox-menu-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.nox-menu-item.logout {
    color: #ef4444;
}

.nox-menu-item.logout:hover {
    background-color: #fef2f2;
}

/* =========================================
   DASHBOARD & SETTINGS STYLES (Noxlay Solid Theme)
   ========================================= */

.nox-page-container {
    padding: 8rem 0 4rem 0;
    min-height: 80vh;
    background-color: var(--bg-light);
}

/* --- STAT CARDS --- */
.nox-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nox-stat-card {
    background: #fff;
    padding: 1.5rem;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #000;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease;
}

.nox-stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000;
    background-color: #fffbeb;
}

.nox-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #000;
    color: #000;
}

/* Stat Icon Colors */
.nox-stat-icon.orders { background-color: #bfdbfe; }
.nox-stat-icon.revenue { background-color: #bbf7d0; }

.nox-stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 5px;
}

.nox-stat-info p {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- SECTION TITLES --- */
.nox-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- MY ACTIVE PLANS GRID --- */
.nox-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- PLAN CARD DESIGN --- */
.nox-plan-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nox-plan-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0px #000;
}

/* Card Header */
.plan-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.plan-icon-box {
    width: 50px;
    height: 50px;
    border: 2px solid #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
}

.plan-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.plan-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Card Details */
.plan-card-details {
    border-top: 2px dashed #e2e8f0;
    padding-top: 15px;
    margin-top: auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.detail-val {
    color: #0f172a;
    font-weight: 700;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

/* Status Colors */
.status-active { color: #16a34a; background: #dcfce7; border-color: #16a34a; }
.status-warning { color: #ea580c; background: #ffedd5; border-color: #ea580c; }
.status-expired { color: #fff; background: #ef4444; border-color: #000; }

/* Manage Button */
.btn-manage {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-manage:hover {
    background: #000;
    color: #fff;
}

/* Empty State */
.empty-state-box {
    text-align: center;
    padding: 3rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    grid-column: 1 / -1;
}

.empty-state-box i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Loader */
.dashboard-loader {
    text-align: center;
    padding: 2rem;
    font-weight: 600;
    color: #64748b;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .nox-dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nox-stat-card { padding: 1rem; flex-direction: column; text-align: center; gap: 0.5rem; }
    .nox-stat-icon { width: 45px; height: 45px; font-size: 1.2rem; }
    .nox-plans-grid { grid-template-columns: 1fr; }
}
/* --- SETTINGS PAGE STYLES --- */
.nox-settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.nox-settings-sidebar {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 6px 6px 0px #000;
    
    /* Sticky Logic */
    height: fit-content;
    position: sticky; 
    top: 100px; /* Header-க்கு கீழே நிற்கும் */
    z-index: 10;
}

.nox-settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    border: 2px solid transparent; /* Prevent jump on hover */
    transition: all 0.2s;
}

.nox-settings-nav-item:hover {
    background-color: #f1f5f9;
    border-color: #000;
}

.nox-settings-nav-item.active {
    background-color: #000;
    color: #fff;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

/* Forms */
.nox-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.nox-input-group label {
    font-weight: 700;
    font-size: 0.9rem;
}

.nox-input-group input {
    border: 2px solid #000 !important; /* Force solid border */
    background: #fff !important;
    box-shadow: 4px 4px 0px #e2e8f0;
}

.nox-input-group input:focus {
    box-shadow: 4px 4px 0px #000;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Hide Desktop Table, Show Mobile Grid */
    .table-container { display: none; }
    .mobile-order-grid { display: grid; }
    .nox-settings-sidebar{
      display:none;
    }

    /* Settings Layout */
    .nox-settings-grid { grid-template-columns: 1fr; }
    .nox-form-row { grid-template-columns: 1fr; }
    
    /* Adjust Padding */
    .nox-page-container { padding-top: 6rem; }
    
    /* Stat Cards Grid */
    .nox-dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nox-stat-card { padding: 1rem; flex-direction: column; text-align: center; gap: 0.5rem; }
    .nox-stat-icon { width: 45px; height: 45px; font-size: 1.2rem; }
}
/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  color: var(--text-light);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  cursor: pointer;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.25rem;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -2px;
}

.title-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.noxlay-logo {
  width: 40px;
  height: 40px;
}
.get-free {
  display: none;
}
.create-free {
  display: block;
}

@media (max-width: 768px) {
  .title-container {
    gap: 2px;
  }
  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 350px) {
  .noxlay-logo {
    width: 30px;
    height: 30px;
  }

  .logo {
    font-size: 1.2rem;
  }
}
.section-intro {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent-yellow);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--bg-light);
}
.who-is-it-for-title {
  color: var(--text-light);
}
.who-is-it-for-subtitle {
  color: var(--text-light);
}
/* --- Card Styles --- */
.card-3d {
  border: 2px solid #000;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  box-shadow: 8px 8px 0px var(--shadow-color);
}

.card-3d:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--shadow-color) !important;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* --- Header --- */
.main-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid #000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* --- Hero Section --- */
.hero {
  padding: 12rem 0 8rem 0;
  text-align: center;
  background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.funky-gradient-text {
  background: var(--funky-gradient);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-pan 4s linear infinite;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 768px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- How It Works Section --- */
.how-it-works {
  width: 100%;
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.steps-grid {
  display: grid;
  gap: 3rem;
  margin-top: 30px;
}

.step-card {
  text-align: center;
}

/* --- Features Section --- */
.features {
  padding: 6rem 0;
  background-color: #fffbe5;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

/* --- Who Is It For? Section --- */
.who-is-it-for {
  padding: 6rem 0;
}
.business-grid-link {
  text-decoration: none;
  color: var(--bg-dark);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 0px auto;
  overflow-wrap: anywhere;
}

.business-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.business-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.business-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

/* --- Pricing Section --- */
.pricing {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.pricing-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.pricing-subtitle {
  max-width: 768px;
  margin: 0 auto 3rem auto;
  font-size: 1.125rem;
  font-weight: 500;
  color: #d1d5db; /* slate-300 */
}

/* --- Background Colors for Cards --- */
.bg-yellow {
  background-color: #fef08a;
}
.bg-cyan {
  background-color: #a5f3fc;
}
.bg-pink {
  background-color: #fbcfe8;
}
.bg-sky {
  background-color: #bae6fd;
}
.bg-violet {
  background-color: #ddd6fe;
}
.bg-emerald {
  background-color: #a7f3d0;
}
.bg-orange {
  background-color: #fed7aa;
}
.bg-lime {
  background-color: #d9f99d;
}
.bg-red {
  background-color: #fecaca;
}
.bg-green {
  background-color: #bbf7d0;
}
.bg-rose {
  background-color: #fecdd3;
}
.bg-indigo {
  background-color: #c7d2fe;
}
.bg-blue {
  background-color: #bfdbfe;
}
.bg-purple {
  background-color: #e9d5ff;
}
.bg-gray {
  background-color: #e5e7eb;
}
.bg-teal {
  background-color: #99f6e4;
}
.bg-fuchsia {
  background-color: #f5d0fe;
}
.bg-slate {
  background-color: #e2e8f0;
}

/* --- Animations --- */
@keyframes gradient-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back to Top Button --- */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;

  /* Button Styling */
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
  color: var(--text-light);
  border-radius: 50%; /* Makes it a circle */

  /* Icon Centering */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;

  /* Initial State (Hidden) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-decoration: none;
}

.back-to-top-btn.show {
  /* Visible State */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(106, 17, 203, 0.5);
}

/* --- Modal, Loader, and Popup Styles --- */

/* Modal Overlay & Content */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

/* Add a red border for invalid fields after submission attempt */
.form-group input:invalid.touched {
  border-color: #e11d48;
}

.form-buttons {
  text-align: right;
  margin-top: 1.5rem;
}

/* ADD THIS MEDIA QUERY AT THE END OF YOUR CSS FILE */
@media (max-height: 700px) {
  .modal-content {
    /* Never let the modal be taller than 90% of the screen's height */
    max-height: 90vh;

    /* Add a vertical scrollbar ONLY if the content inside is too tall */
    overflow-y: auto;
  }
  .modal-content h2 {
    font-size: 1.2rem;
  }

  .modal-content p {
    font-size: 14px;
  }
}
@media (max-width: 700px){
  .modal-content {
    /* Never let the modal be taller than 90% of the screen's height */
    max-height: 80vh;

    /* Add a vertical scrollbar ONLY if the content inside is too tall */
    overflow-y: auto;
  }
}

/* Success Popup */
.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #10b981, #2dd4bf);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .popup {
    font-size: 12px;
    width: 90%;
  }
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  top: -100px; /* Initially off-screen */
  left: 50%;
  transform: translateX(-50%);
  background-color: #e11d48; /* Red for errors */
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 5000;
  font-weight: 600;
  transition: top 0.4s ease-in-out;
}

.toast.show {
  top: 20px; /* Slides into view */
}

/* --- Form Error Message Styles --- */
.error-message {
  color: #e11d48; /* A strong red color */
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
  height: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

.error-message.show {
  height: 1.2em; /* Roughly the height of one line of text */
  opacity: 1;
}

@media (max-width: 768px) {
  .toast {
    font-size: 12px;
    width: 90%;
  }
}

/* Add a red border to the input box itself when there's an error */
.form-group input.input-error {
  border-color: #e11d48;
}

/* --- Legal & Static Page Styles --- */
.legal-page {
  padding: 10rem 0 6rem 0; /* Add padding to account for fixed header */
  background-color: #f8fafc; /* A light, clean background */
}

.legal-content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 8px 8px 0px #e2e8f0; /* A subtle shadow */
}

.legal-content-container h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 1rem;
}

.legal-content-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content-container p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content-container ul,
.legal-content-container ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content-container li {
  margin-bottom: 0.5rem;
}

.legal-content-container a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.legal-content-container a:hover {
  text-decoration: underline;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
  .legal-page {
    padding: 8rem 0 4rem 0;
  }
  .legal-content-container h1 {
    font-size: 2rem;
  }
  .legal-content-container h2 {
    font-size: 1.5rem;
  }
}

/* --- Footer --- */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 4px solid var(--accent-yellow);
  padding: 4rem 0 2rem 0;
}
.footer_container {
  width: 100%;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}
.footer-location {
  width: 90%;
}
.footer_location-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connect-container {
  margin-top: 20px;
}
.footer-location iframe {
  border-radius: 8px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-location iframe:hover {
  opacity: 1;
}

.footer-about p {
  font-size: 0.9rem;
  color: #94a3b8; /* slate-400 */
}
.footer-logo {
  width: 100px;
  height: 100px;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db; /* slate-300 */
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.social-icons i {
  font-size: 1.5rem;
}

.footer-copyright {
  border-top: 1px solid var(--text-muted);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8; /* slate-400 */
}

@media (max-width: 567px) {
  .footer-logo-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
  }
  .footer-logo {
    width: 50px;
    height: 50px;
  }
}

/* --- Responsive Design (Mobile First) --- */

/* Tablet Styles */
@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .business-card h3 {
    font-size: 1.1rem;
  }
  .pricing-title {
    font-size: 4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-about {
    margin-left: 50px;
  }
  .footer_location-container {
    grid-area: 3/1/3/3;
  }
  .footer-location iframe {
    width: 100%;
    height: auto;
  }
}

/* Desktop Styles */

@media (min-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    text-align: left;
  }
  .social-icons {
    justify-content: flex-start;
  }
  .footer-location {
    width: 150px;
  }
  .footer-about {
    margin-left: 30px;
  }
  .footer_location-container {
    grid-area: 1/5;
    margin-right: 20px;
  }
}
@media (min-width: 1280px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-location {
    width: 200px;
  }
}
@media (min-width: 1300px) {
  .footer-about {
    margin-left: 30px;
  }
  .footer-location {
    width: 300px;
  }
}
@media (max-width: 767px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .business-card h3 {
    font-size: 12px;
  }
}
@media (max-width: 992px) {
  .footer-links ul li {
    display: grid;
    grid-template-columns: 40px 1fr;
    text-align: left;
  }
  .footer-menu {
    margin-left: 30%;
  }
  .footer-menu-contact {
    margin-left: 20%;
  }
  .footer-menu ul li i {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-menu-contact ul li i {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 567px) {
  .get-free {
    display: block;
  }
  .create-free {
    display: none;
  }
  .footer-menu-contact ul li {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-grid {
    padding: 10px;
    grid-template-columns: 1fr 1fr; /* two columns */
    grid-template-areas:
      "about about"
      "company legal"
      "contact contact"
      "location location";
  }
  /* Assign each block to its area */
  .footer-about {
    grid-area: about;
  }
  .footer-company-menu {
    grid-area: company;
  } /* company */
  .footer-contact-menu {
    grid-area: contact;
  } /* contact */
  .footer-links.footer-legal {
    grid-area: legal;
  } /* legal/social */
  .footer_location-container {
    grid-area: location;
  }

  .footer-menu {
    margin-left: 0%;
  }
  .footer-menu-contact {
    margin-left: 0%;
  }
}
@media (max-width: 400px) {
  .btn-primary {
    padding: 10px;
  }
  .header-btn {
    font-size: 14px;
  }
}

/* --- Unique FAQ Page Styles (Light Theme) --- */

.faq-page-container {
  padding: 10rem 0 6rem 0;
  min-height: 100vh;
  background-color: var(--bg-light); /* Your site's light background */
}

/* Page Header with Title and Subtitle */
.faq-page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.faq-page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Left Column: List of Questions */
.faq-questions {
  border: 2px solid #000;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: #ffffff;
  box-shadow: 8px 8px 0px #e2e8f0;
}

.faq-questions h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
  color: var(--text-dark);
}

.faq-question-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-question-list li button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 1rem;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.faq-question-list li button:hover {
  background-color: #f8fafc;
  color: var(--text-dark);
}

.faq-question-list li button.active {
  background: var(--primary-gradient);
  color: #ffffff;
  padding-left: 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

/* Right Column: The Answer Panel */
.faq-answer-panel {
  position: sticky;
  top: 120px;
  height: fit-content;
  padding: 2rem;
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 8px 8px 0px var(--accent-yellow);
  min-height: 250px;
  display: none; /* Hidden by default on mobile */
}

.faq-answer-panel h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.faq-answer-panel p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Inline Answers (for accordion on mobile) */
.faq-answer {
  display: none;
  padding: 2rem;
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 8px 8px 0px var(--accent-yellow);
  margin-top: 1rem;
}

.faq-answer h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Responsive Design for FAQ Grid --- */
@media (max-width: 767px) {
  .faq-page-container {
    padding: 8rem 1rem 4rem 1rem;
  }
  .faq-page-header h1 {
    font-size: 2.5rem;
  }
  .faq-answer-panel {
    display: none; /* Always hide panel on mobile */
  }
  .faq-questions {
    border: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
  }
  .faq-question-list li {
    margin-bottom: 1rem;
  }
  .faq-question-list li .faq-answer {
    display: none;
    animation: fadeInAnswer 0.5s ease-in-out;
  }
  .faq-question-list li.active .faq-answer {
    display: block;
  }
  .faq-question-list li button {
    border: 2px solid #000;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 8px 8px 0px #e2e8f0;
  }
  .faq-question-list li button.active {
    box-shadow: none; /* Optional: Adjust active style for mobile */
  }
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .faq-answer-panel {
    display: block;
  }
  .faq-answer {
    display: none !important; /* Always hide inline answers on desktop */
  }
}

@keyframes fadeInAnswer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Final Contact Page Styles (Focus Flow Form + Details) --- */

.contact-page-container {
  padding: 10rem 0 6rem 0;
  min-height: 100vh;
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

/* --- Left Column: Contact Details Grid (Light Theme) --- */
.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 0px #e2e8f0;
}

.contact-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #e2e8f0;
}

.contact-card-icon {
  font-size: 1.8rem;
  color: var(--text-dark);
}

.contact-card-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-card-info a,
.contact-card-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-all;
}

.contact-card-info a:hover {
  color: #2575fc;
  text-decoration: underline;
}

/* --- Right Column: Focus Flow Form --- */
.focus-form-container {
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 16px;
  box-shadow: 12px 12px 0px #e2e8f0;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 400px; /* Ensures consistent height */
  display: flex;
  align-items: center;
}
.contact-sumbit-btns {
  display: flex;
  gap: 2rem;
}
.focus-form-container form {
  width: 100%;
}

/* Form Steps */
.form-step {
  position: absolute;
  top: 50%;
  left: 2.5rem;
  right: 2.5rem;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.form-step.active {
  opacity: 1;
  visibility: visible;
}

.form-step.animate-in {
  animation: slideInUp 0.5s forwards;
}
.form-step.animate-out {
  animation: slideOutUp 0.5s forwards;
}

.form-step label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 2rem;
}

.focus-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid #e2e8f0;
  font-size: 1.2rem;
  padding: 0.5rem 0;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s;
}

.focus-input:focus {
  border-color: #6a11cb;
}
textarea.focus-input {
  resize: none;
  line-height: 1.6;
}

.contact-form-btns {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
/* Buttons */
.next-step-btn,
.submit-btn,
.prev-step-btn {
  margin-top: 2rem;
  margin-left: auto;
  padding: 0.8rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.next-step-btn:hover,
.submit-btn:hover,
.prev-step-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
}
.prev-step-btn {
  margin-left: 0px;
}
.first_next_step_btn {
  margin-left: 400px;
}
.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Progress Bar */
.form-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
}

.progress-bar-fill {
  width: 33.3%;
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.4s ease-in-out;
}

/* --- Responsive Styles --- */
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}
@media (max-width: 768px) {
  .contact-sumbit-btns {
    gap: 10px;
  }
    .first_next_step_btn {
        margin-left: auto; /* Uses the default auto margin to align it right */
        margin-top: 1rem;  /* Optional: Adjust spacing if needed */
    }
}

/* --- Final About Us Page Styles --- */

.about-page-container {
  background-color: var(--bg-light);
}

/* --- Section 1: Hero --- */
.about-hero {
  text-align: center;
  padding: 8rem 1rem 6rem 1rem;
  background-color: #ffffff;
  border-bottom: 2px solid #000;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Section 2: Interactive Story Deck --- */
.story-deck-section {
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.story-deck-wrapper {
  width: 100%;
  max-width: 500px;
}

.story-deck-container {
  width: 100%;
  height: 500px; /* Adjusted height */
  position: relative;
  perspective: 1500px;
}

.story-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 12px 12px 0px #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-origin: center center;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Card states for animation */
.story-card.active {
  transform: rotateX(0deg) translateY(0) scale(1);
  opacity: 1;
  z-index: 10;
}
.story-card.prev {
  transform: translateY(-50%) scale(0.8);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.story-card.next {
  transform: translateY(50%) scale(0.8);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Card Content */
.story-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
.story-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.story-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Side Animations */
.side-animations-left {
  position: absolute;
  left: -250px;
  width: 200px;
  height: 100%;
  top: 0;
}

.side-animations-right {
  position: absolute;
  left: calc(100% + 50px);
  width: 200px;
  height: 100%;
  top: 0;
}

.animated-icon {
  position: absolute;
  font-size: 4rem;
  color: #d1d5db;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-15px) rotate(var(--rotate, 0deg));
  }
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
}

/* Navigation */
.story-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0 1rem;
}
.story-nav-btn {
  background: #ffffff;
  border: 2px solid #000;
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.story-nav-btn:hover {
  background-color: var(--text-dark);
  color: #ffffff;
}
.story-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.story-dots {
  display: flex;
  gap: 10px;
}
.story-dot {
  width: 12px;
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}
.story-dot.active {
  background-color: var(--text-dark);
  transform: scale(1.2);
}

/* --- Section 3: Meet the Team --- */
.team-section {
  padding: 6rem 1rem;
  background-color: #fffbe5;
  border-top: 2px solid #000;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background-color: #ffffff;
  border: 2px solid #000;
  border-radius: 12px;
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 0px #f59e0b;
}

.team-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #f59e0b;
}

.team-card-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  border: 4px solid #000;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.team-card-info p {
  color: var(--text-muted);
}
.title-container a{
  text-decoration: none;
  color: var(--bg-dark);
}

/* --- Responsive Design --- */
@media (min-width: 1300px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .about-hero h1 {
    font-size: 4rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .about-page-container {
    padding-top: 6rem;
  }
  .story-deck-container {
    height: 480px;

  }
  .story-card h3 {
    font-size: 1.5rem;
  }
  .story-card p {
    font-size: 1rem;
  }
  .side-animations-left,
  .side-animations-right {
    display: none;
  }
}

/* --- Extraordinary Tech Loader --- */
.noxlay-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out 0.5s;
}

.noxlay-loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.noxlay-loader-container {
  text-align: center;
}

.noxlay-loader-logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.noxlay-loader-logo {
  width: 100%;
  animation: noxlay-float 3s ease-in-out infinite;
}

.noxlay-loader-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: noxlay-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

.noxlay-loader-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 10px;
}

.noxlay-loader-text span {
  display: inline-block;
  opacity: 0;
  animation: noxlay-fadeIn-letter 0.5s forwards;
}

/* Staggered animation */
.noxlay-loader-text span:nth-child(1) {
  animation-delay: 0.1s;
}
.noxlay-loader-text span:nth-child(2) {
  animation-delay: 0.2s;
}
.noxlay-loader-text span:nth-child(3) {
  animation-delay: 0.3s;
}
.noxlay-loader-text span:nth-child(4) {
  animation-delay: 0.4s;
}
.noxlay-loader-text span:nth-child(5) {
  animation-delay: 0.5s;
}
.noxlay-loader-text span:nth-child(6) {
  animation-delay: 0.6s;
}

.noxlay-loader-subtext {
  color: #94a3b8;
  font-size: 1rem;
  opacity: 0;
  animation: noxlay-fadeIn-subtext 1s forwards 0.8s;
}

/* --- Keyframes --- */
@keyframes noxlay-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes noxlay-pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes noxlay-fadeIn-letter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noxlay-fadeIn-subtext {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .noxlay-loader-logo-container {
    width: 80px;
    height: 80px;
  }
  .noxlay-loader-text {
    font-size: 1.5rem;
  }
  .noxlay-loader-subtext {
    font-size: 0.9rem;
  }
}

/* --- Form Submission Loader --- */
.form-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 3000;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
}

.loader-spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid var(--primary-gradient); /* Blue from your button */
  border-image: var(--primary-gradient) 1;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* --- Blog Hero (High Impact) --- */
.blog-hero {
  position: relative;
  padding: 10rem 0 6rem;
  background-color: #f8fafc; /* Light slate */
  overflow: hidden;
  text-align: center;
}
.article-btn{
  margin-top: 20px;
}

.blog-tag {
  background-color: #e0f2fe; /* Light blue */
  color: #0284c7; /* Dark blue */
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Decorative Blobs for "Modern Tech" feel */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  animation: float 10s infinite ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 117, 252, 0.2);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.2);
  bottom: -50px;
  right: -50px;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
}

/* --- Filter & Search Bar (Sticky) --- */
.blog-controls {
  position: sticky;
  top: 80px; /* Adjust based on your header height */
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.controls-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-filter::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.category-filter {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.category-filter {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 5px; /* For scrollbar spacing on mobile */
}

.category-filter li {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s;
  white-space: nowrap;
}

.category-filter li:hover,
.category-filter li.active {
  background-color: var(--text-dark);
  color: #fff;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  transition: all 0.3s;
}

.search-wrapper input:focus {
  border-color: var(--primary-gradient);
  box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.1);
}

/* --- Blog Grid (The "Best UI" Cards) --- */
.blog-listing {
  padding-bottom: 6rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.8rem;
}

.card-meta i {
  margin-right: 5px;
}

.blog-card h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.card-link {
  text-decoration: none;
  color: var(--text-dark);
  background-image: linear-gradient(var(--accent-yellow), var(--accent-yellow));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s;
}

.blog-card:hover .card-link {
  background-size: 100% 2px;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more {
  color: #2575fc;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 10px;
}

/* --- Newsletter Box --- */
.newsletter-section {
  margin-top: 4rem;
}
.newsletter-box {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222222' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 2rem auto 0;
}

/* =========================================
   SINGLE BLOG POST STYLES
   ========================================= */

.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 2000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--funky-gradient);
  width: 0%;
  transition: width 0.1s;
}

.article-header {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: #fff;
  text-align: center;
}

/* =========================================
   SEO INTERNAL LINK STYLING
   ========================================= */

/* Default State: Clean & Trustworthy */
.article-content a {
    color: #2563eb; /* Primary Brand Blue */
    font-weight: 700; /* Bold to stand out from text */
    text-decoration: none;
    border-bottom: 2px solid #bae6fd; /* Thick light blue underline */
    transition: all 0.2s ease-in-out;
    padding-bottom: 1px;
}

/* Hover State: "Highlighter" Effect with 3D Pop */
.article-content a:hover {
    background-color: #fef08a; /* Yellow Highlight */
    color: #0f172a; /* Dark Text */
    border-bottom: 2px solid #000; /* Solid Black Border */
    
    /* The Noxlay Signature 3D Effect */
    box-shadow: 3px 3px 0px rgba(0,0,0,1); 
    transform: translateY(-2px); /* Slight lift */
    
    /* Spacing adjustments to prevent text jumping */
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 -6px; /* Counter-margin to keep flow */
}

/* Active/Click State */
.article-content a:active {
    box-shadow: 0px 0px 0px rgba(0,0,0,1);
    transform: translateY(0px);
}

.widget-btn{
  padding: 10px;
}

.small-container {
  max-width: 800px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb i {
  font-size: 0.7rem;
  margin: 0 10px;
}

.article-title {
  font-size: 3rem; /* Big, bold title */
  line-height: 1.2;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.author-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 740px 1fr; /* Center content max-width */
  gap: 2rem;
  padding: 2rem 0;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
  }
  .sidebar-social {
    display: none;
  }
  .article-content {
    grid-column: 1;
  }
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-widgets {
    display: none;
  }
}

/* Typography for Article */
.article-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bg-light);
}
.article-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  position: relative;
}
/* .article-content h2::before {
  content: "#";
  position: absolute;
  left: -25px;
  color: var(--accent-yellow);
  opacity: 0;
  transition: opacity 0.3s;
}
.article-content h2:hover::before {
  opacity: 1;
} */

.article-content p {
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-yellow);
  margin-bottom: 2rem;
}

.featured-image-wrapper {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
}
.table-of-contents h3{
    color: var(--accent-yellow);
}
.callout-box{
    color: var(--text-dark);
}
figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--accent-yellow);
  padding-left: 20px;
  margin: 2rem 0;
  font-size: 1.4rem;
  font-style: italic;
  color: #000;
  background: #fffbe5;
  padding: 2rem;
  border-radius: 0 12px 12px 0;
}

/* ... existing code ... */
/* Table of Contents Styles */
.table-of-contents {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
}

.table-of-contents h3 { 
    margin-top: 0; 
    font-size: 1.2rem; 
}

.table-of-contents ul { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 0;
}

.table-of-contents li { 
    margin-bottom: 0.5rem; 
}

.table-of-contents a { 
    text-decoration: none; 
    color: #64748b; 
    font-size: 0.95rem; 
    transition: color 0.2s;
}

.table-of-contents a:hover { 
    color: #2563eb; 
    text-decoration: underline; 
}

/* Sidebar Widget */
.sticky-widget {
  position: sticky;
  top: 120px;
  background: #fff;
  border: 2px solid #000;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 8px 8px 0px var(--accent-yellow);
}

@media (max-width: 768px) {
    
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .article-title {
    font-size: 2rem;
  }
  .controls-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-wrapper {
    max-width: 100%;
  }
  .newsletter-form {
    flex-direction: column;
  }
}


/* --- FIX: Make Single Blog Images Responsive --- */
.featured-image-wrapper img,
.article-content img {
    width: 100%;          /* Force image to fit container width */
    height: auto;         /* Maintain aspect ratio */
    display: block;       /* Remove bottom spacing gap */
    max-width: 100%;      /* Ensure it never exceeds parent width */
}

/* --- FIX: Ensure Content Doesn't Overflow --- */
.article-content {
    width: 100%;          /* Ensure text container fits the grid */
    overflow-wrap: break-word; /* Prevent long words/links from breaking mobile layout */
    font-size: 1.1rem;    /* Readable font size for mobile */
}

/* --- FIX: Mobile Layout Adjustments --- */
@media (max-width: 768px) {
    /* Fix Grid Blowing Out */
    .article-layout {
        grid-template-columns: 1fr !important; /* Force single column */
        padding: 1rem 0;      /* Reduce padding */
        display: block; 
        padding: 30px;      /* Fallback to block if grid behaves oddly */
    }

    .small-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Adjust Title Size */
    .article-title {
        font-size: 2rem !important; /* Smaller title for mobile */
        line-height: 1.3;
    }

    /* Adjust Blockquote */
    blockquote {
        margin: 1.5rem 0;
        padding: 1.5rem;
        font-size: 1.1rem;
    }
}



/* =========================================
   BLOG TEMPLATE LIBRARY STYLES
   (Add this to the bottom of style.css)
   ========================================= */

/* --- 1. Split Layout (Image + Text) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 3rem 0;
}

.split-layout img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    object-fit: cover;
}

/* Mobile: Stack them vertically */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    /* Force image to appear above text on mobile */
    .split-layout img {
        order: -1; 
    } 
}

/* --- 2. Quote Box (Yellow) --- */
.quote-box {
    background: #fffbe5; /* Light yellow background */
    border-left: 5px solid #f59e0b; /* Orange accent line */
    padding: 2rem;
    margin: 2.5rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #334155;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.quote-author {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
    font-style: normal;
    letter-spacing: 1px;
}

/* --- 3. Callout Box (Blue Tip) --- */
.callout-box {
    background: #f0f9ff; /* Light blue background */
    border: 1px solid #bae6fd; /* Blue border */
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    margin: 2rem 0;
    align-items: flex-start;
}

.callout-icon {
    color: #0284c7;
    font-size: 1.5rem;
    margin-top: 2px;
}

/* --- 4. Utilities --- */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* --- 5. Full Width Images --- */
.featured-image-wrapper {
    margin: 3rem 0;
    text-align: center;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.featured-image-wrapper figcaption {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

/* =========================================
   PRODUCTS PAGE STYLES (products.php)
   ========================================= */

.products-page-container {
    padding: 10rem 0 6rem 0;
    min-height: 100vh;
    background-color: var(--bg-light); 
}

.products-page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.products-page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.products-page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.product-grid {
    /* Responsive Grid: 300px minimal width cards */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base Card Styles */
.product-card-theme {
    /* Uses inherited classes: .card-3d and .reveal */
    background-color: var(--text-light); 
    border: 2px solid var(--text-dark); 
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    /* --shadow-color is set directly in the HTML inline style for each card */
    box-shadow: 8px 8px 0px var(--shadow-color); 
    display: flex;
    flex-direction: column;
    text-decoration: none; 
    color: var(--text-dark);
}

/* Inherits hover from .card-3d, for a nice lifted effect */
.product-card-theme:hover {
    transform: translate(-4px, -4px);
    /* Note: Using the inline --shadow-color for hover effect too */
    box-shadow: 12px 12px 0px var(--shadow-color) !important;
}

.product-image-wrapper {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-theme:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* To ensure button is always at the bottom */
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.product-details-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    /* Inherits from .btn .btn-primary styles */
}

/* Mobile Responsiveness for Product Grid */
@media (max-width: 768px) {
    .products-page-header h1 {
        font-size: 2.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .products-page-container .container {
        padding: 0 1rem;
    }
}

/* INDIVIDUAL PRODUCT PAGE */
/* Hero Adjustments */
    .product-hero {
        padding-top: 10rem;
        padding-bottom: 4rem;
        background-color: #fff;
    }
    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 2rem;
    }
    .btn-secondary {
        background: transparent;
        border: 2px solid var(--text-dark);
        color: var(--text-dark);
        padding: 0.75rem 1.5rem;
    }
    .btn-secondary:hover {
        background: var(--text-dark);
        color: #fff;
        transform: translateY(-3px);
    }

    /* Split Layout Adjustments */
    .product-benefits {
        padding: 4rem 0;
        background-color: var(--bg-light);
    }
    .split-layout {
        margin-bottom: 6rem;
        align-items: center;
    }
    .split-layout.reverse {
        /* To reverse order visually without changing HTML structure for SEO */
    }
    .image-box img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 12px 12px 0px var(--text-dark);
        border: 2px solid var(--text-dark);
    }
    .text-box h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        font-weight: 800;
    }
    .text-box p {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
    }
    .icon-box {
        width: 50px;
        height: 50px;
        background: #fef08a; /* yellow-200 */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        border: 2px solid black;
    }
    
    /* Benefit List */
    .benefit-list {
        list-style: none;
        padding: 0;
    }
    .benefit-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        font-weight: 500;
    }
    .benefit-list li i {
        color: #16a34a; /* green-600 */
        background: #dcfce7;
        padding: 5px;
        border-radius: 50%;
        font-size: 0.8rem;
    }

    /* CTA Section */
    .product-cta {
      
        text-align: center;
    }
    .cta-box {
        background: var(--text-dark);
        color: #fff;
        padding: 4rem 2rem;
        border-radius: 20px;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222222' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    .cta-box h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .cta-box p {
        color: #cbd5e1;
        margin-bottom: 2rem;
        font-size: 1.2rem;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }
        .hero-buttons {
            flex-direction: column;
        }
        .split-layout {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 2rem;
        }
        .split-layout.reverse {
            display: flex;
            flex-direction: column-reverse;
        }
        .benefit-list li {
            justify-content: center;
        }
        .icon-box {
            margin: 0 auto 1rem auto;
        }
        .image-box img {
            box-shadow: 8px 8px 0px var(--text-dark);
        }
    }

/* =========================================
   NOXLAY PRICING STYLES (New Solid UI)
   ========================================= */

/* Main Container */
.nox-pricing-section {
    padding: 60px 20px;
    background-color: var(--bg-light); /* Matches site bg */
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nox-pricing-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Section Title */
.nox-pricing-title-box {
    text-align: center;
    margin: 50px 20px;
}

.nox-pricing-title-box h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.nox-pricing-title-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* GRID SYSTEM */
.nox-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* --- NEW SOLID CARD DESIGN --- */
.nox-price-card {
    background: #ffffff;
    border: 3px solid #000000; /* Thick Black Border */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease-in-out;
    
    /* Solid Hard Shadow (Right & Bottom) */
    box-shadow: 10px 10px 0px var(--card-shadow); 
}

/* Hover Effect: Moves up slightly */
.nox-price-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0px var(--card-shadow);
}

/* HEADER (Solid Background) */
.nox-card-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 3px solid #000000; /* Divider line */
    background-color: var(--card-bg); /* Unique color per card */
    color: #000; /* Black text for solid look */
    border-radius: 9px 9px 0 0; /* Match parent radius */
}

.nox-card-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nox-card-header .price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 10px;
}

.nox-card-header .period {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* BODY */
.nox-card-body {
    padding: 30px 20px;
    flex-grow: 1;
    background-color: #fff;
}

.nox-card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
}

.nox-card-features li i {
    margin-right: 12px;
    font-size: 1.1rem;
    border: 2px solid #000;
    padding: 3px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7; /* Light green bg for check */
    color: #15803d;
}

.nox-card-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}

.nox-card-features li.disabled i {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
}

/* FOOTER */
.nox-card-footer {
    padding: 20px;
    background: #fff;
    border-top: 3px solid #000; /* Divider line */
    border-radius: 0 0 9px 9px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- BUTTONS (Solid Retro Style) --- */
.nox-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-transform: uppercase;
}

/* Filled Button */
.nox-btn-fill {
    background: #000;
    color: #fff;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.nox-btn-fill:hover {
    background: #333;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

/* Outline Button */
.nox-btn-outline {
    background: #fff;
    color: #000;
    box-shadow: 4px 4px 0px #000;
}

.nox-btn-outline:hover {
    background: var(--card-bg); /* Hovers to card color */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

/* --- CARD THEMES (Solid Colors) --- */

/* 1. Free Plan (Green Theme) */
.card-free {
    --card-bg: #bbf7d0; /* Solid Light Green */
    --card-shadow: #16a34a; /* Dark Green Shadow */
}

/* 2. Starter Plan (Blue Theme) */
.card-starter {
    --card-bg: #bfdbfe; /* Solid Light Blue */
    --card-shadow: #2563eb; /* Dark Blue Shadow */
}

/* 3. Business Plan (Purple Theme - Popular) */
.card-business {
    --card-bg: #e9d5ff; /* Solid Light Purple */
    --card-shadow: #9333ea; /* Dark Purple Shadow */
}
/* Popular Badge Logic */
.card-business::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fef08a; /* Yellow */
    border: 2px solid #000;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 4px 4px 0px #000;
    z-index: 10;
}

/* 4. Enterprise Plan (Orange Theme) */
.card-enterprise {
    --card-bg: #fed7aa; /* Solid Light Orange */
    --card-shadow: #ea580c; /* Dark Orange Shadow */
}

/* Responsive */
@media (max-width: 1024px) {
    .nox-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nox-pricing-grid { grid-template-columns: 1fr; gap: 40px; }
}
 
/* =========================================
   PRODUCT SELECTION MODAL STYLES (Responsive)
   ========================================= */

/* MODAL GRID CONTAINER */
.product-select-grid {
    display: grid;
    /* Desktop: மிகச்சரியாக 4 கார்டுகள் ஒரு வரிசையில் */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 2rem;
    max-height: 60vh;
    overflow-y: auto; /* Scrollable if list is long */
    padding: 10px;
}

/* MODAL CARD DESIGN */
.product-select-card {
    border: 2px solid #000;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    /* Solid Shadow Effect */
    box-shadow: 4px 4px 0px #000;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px; /* Uniform height */
}

/* Hover Effect */
.product-select-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px #000; /* Deep shadow on hover */
    background-color: #fef9c3; /* Light Yellow Highlight */
}

/* Icon Style (Desktop) */
.product-select-card i {
    font-size: 2.2rem; /* Big Icon */
    color: #334155;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.product-select-card:hover i {
    color: #000;
}

/* Text Style (Desktop) */
.product-select-card span {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
}

/* --- MOBILE RESPONSIVE STYLES (Max Width: 768px) --- */
@media (max-width: 768px) {
    
    .product-select-grid {
        /* Mobile: ஒரு வரிசையில் 2 கார்டுகள் */
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; /* Gap குறைக்கப்பட்டுள்ளது */
        margin-top: 1.5rem;
        padding: 5px;
    }

    .product-select-card {
        padding: 15px 10px; /* Padding குறைக்கப்பட்டுள்ளது */
        min-height: 100px;
        box-shadow: 3px 3px 0px #000; /* Smaller shadow */
    }

    /* Mobile: Small Icon */
    .product-select-card i {
        font-size: 1.5rem; 
        margin-bottom: 3px;
    }

    /* Mobile: Small Text */
    .product-select-card span {
        font-size: 0.75rem; /* எழுத்து அளவு குறைப்பு */
        font-weight: 600;
    }
}

  .google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.google-btn img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.nox-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: #888;
    font-size: 12px;
}

.nox-separator::before,
.nox-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.nox-separator::before { margin-right: 10px; }
.nox-separator::after { margin-left: 10px; }

/* --- PHONE INPUT GROUP STYLES --- */
.phone-group-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.country-select {
    width: 65px; /* Width for country code */
    /* padding: 10px; */
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f8f9fa;
    font-size: 12px;
    cursor: pointer;
}

.phone-input {
    flex: 1; /* Takes remaining space */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 3px;
}

/* Ensure focus styles match */
.country-select:focus,
.phone-input:focus {
    border-color: #333;
    outline: none;
}

