/* ======================== */
/* ==== CSS Variables ===== */
/* ======================== */
:root {
    --primary-color: #2B3A42;
    --secondary-color: #64D8CB;
    --accent-color: #FF8800;
    --background-color: #F8F9FA;
    --text-color: #333333;
    --white-color: #FFFFFF;
    --gray-color: #666666;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 2rem;
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
}

/* ======================== */
/* ====== Base Styles ===== */
/* ======================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: var(--font-size-base);
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* ======================== */
/* ======== Header ======== */
/* ======================== */

/* --- Default Header (Non-Scrolled State) --- */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: transparent;
    padding: 20px 50px;      /* Larger initial padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    width: 90%;              /* Match scrolled width */
    max-width: 1400px;       /* Match scrolled max-width */
    box-sizing: border-box;
    margin: 0 auto;
}

/* --- Navigation and Logo Styles --- */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav li {
    margin-right: 20px;
}

header nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--font-size-base);
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

header nav a:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    box-shadow: 0px 4px 10px rgba(255, 136, 0, 0.3);
}

header .logo {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Scrolled Header State --- */
header.scrolled {
    /* Positioning */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    /* Sizing */
    width: 90%;
    max-width: 1400px;
    box-sizing: border-box;
    
    /* Visual Style */
    background: rgba(248, 248, 248, 0.95) !important;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    padding: 12px 30px !important;
    margin: 0 auto;
    
    /* Transition */
    transition: all 0.3s ease, background 0.2s linear;
}

/* Scrolled State Text Adjustments */
header.scrolled .logo {
    color: var(--primary-color) !important;
}

header.scrolled nav a {
    color: var(--text-color) !important;
}

header.scrolled nav a:hover {
    color: var(--white-color) !important;
    background-color: var(--accent-color) !important;
}
  

/* ======================== */
/* ======== Hero ========== */
/* ======================== */

.hero {
    position: relative;
    margin: 0;
    padding: 140px 20px 100px;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* more subtle overlay */
    z-index: 1;
}

.hero-content,
.hero-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    box-sizing: border-box;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; /* bring content closer */
}

.hero-left {
    max-width: 600px;
    text-align: left;
}

.hero-left h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-left p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-right {
    text-align: left;
    max-width: 400px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-trust-text {
    font-size: 1rem;
    color: #ccc;
    max-width: 350px;
    line-height: 1.6;
}


/* ======================== */
/* ====== CTA Section ===== */
/* ======================== */

.cta {
    background: linear-gradient(135deg, #2B3A42, #354854);
    color: var(--white-color);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cta-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
  }
  
  .cta h2 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
  }
  
  .cta p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    color: #E0E0E0;
  }
  
  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .cta-button.primary-button {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 9999px;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .cta-button.primary-button:hover {
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 100%);
    transform: translateY(-2px);
  }
  
  .cta-button.secondary-button {
    border: 1px solid #ffffff;
    color: white;
    padding: 14px 32px;
    border-radius: 9999px;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .cta-button.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }  

/* ======================== */
/* ==== Service Cards ===== */
/* ======================== */
.data-services {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--white-color);
}

.data-services h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service-card-link {
    text-decoration: none;
    display: block;
    perspective: 1000px;
}

.service-card {
    background: linear-gradient(180deg, var(--white-color) 0%, #F8F9FA 100%);
    border: 1px solid rgba(208, 211, 216, 0.4);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card-link:hover .service-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, var(--white-color) 0%, #F3F4F6 100%);
    border-color: rgba(208, 211, 216, 0.6);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.service-card-link:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.service-card p {
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 300px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/*New Data Service*/
.data-services {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding: 80px 20px;
    text-align: center;
  }
  
  .section-label {
    color: #3b82f6; /* Brand Accent Color */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .section-intro {
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555;
  }
  
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
  }
  
  .service-card {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .service-card img {
    width: 60px;
    margin-bottom: 20px;
  }
  
  .service-card h3 {
    margin-bottom: 15px;
    color: #111;
  }
  
  .service-card p {
    color: #666;
    font-size: 0.95rem;
  }
  
  .section-trust {
    margin-top: 60px;
    font-size: 1.1rem;
    color: #666;
  }
  
  .section-divider {
    margin-top: 40px;
    font-size: 1rem;
    color: #666;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  

/* ======================== */
/* === Forecasting Tool === */
/* ======================== */
.forecasting-tool {
    text-align: center;
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.forecasting-tool h2 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.forecasting-tool p {
    font-size: var(--font-size-lg);
    color: var(--gray-color);
    margin-bottom: 20px;
}

.forecasting-tool .cta-button {
    font-size: var(--font-size-lg);
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
}

.forecasting-tool .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(255, 136, 0, 0.3);
}

/* ======================== */
/* ======= Buttons ======== */
/* ======================== */
.cta-button {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.cta-button.secondary-button {
    background: transparent;
    border: 2px solid var(--white-color);
}

.cta-button.secondary-button:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

/* ======================== */
/* ======= Footer ========= */
/* ======================== */
footer {
    background: #1f2937;  /* Dark Slate */
    color: #cbd5e1;       /* Soft Gray */
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .footer-left p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  .footer-right a {
    color: #cbd5e1;
    margin-left: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-right a:hover {
    color: var(--brand-color); /* your primary accent color */
  }  

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--white-color);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.top-button {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.top-button:hover {
    background-color: #56BBAF;
    transform: scale(1.1);
}

.top-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

body.scrolled .top-button {
    opacity: 1;
}

/* ======================== */
/* ==== Page Specific ===== */
/* ======================== */
.forecasting-tool-page,
.sales-dashboard-page {
    text-align: center;
}

.forecasting-tool-page main,
.sales-dashboard-page main {
    padding: 50px 20px;
}

.forecasting-tool-page h1,
.sales-dashboard-page h1 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.forecasting-tool-page p,
.sales-dashboard-page p {
    font-size: var(--font-size-lg);
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto 40px;
}

.service-detail {
    padding: 60px 0;
    background-color: #F8F9FA;
}

.service-detail-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    gap: 40px;
}

.service-detail-container.reverse {
    flex-direction: row-reverse;
}

.service-detail-image img {
    width: 120px;
    height: auto;
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-detail-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
}

.service-detail-content ul li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-detail-content ul li strong {
    margin-left: 8px;
}

/* ======================== */
/* ===== Contact Page ===== */
/* ======================== */
.contact-page {
    background-color: var(--background-color);
    padding-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form button {
    width: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    font-size: 1.2rem;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(255, 136, 0, 0.3);
}

.contact-info {
    display: block !important;
    opacity: 1 !important;
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
}

.contact-info h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info .service-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info .service-card img {
    width: 50px;
    margin-bottom: 10px;
}

/* === Dashboard Custom Styles === */

.dashboard-page header {
    background: linear-gradient(90deg, #2B3A42 0%, #354854 100%);
    color: var(--white-color);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .dashboard-hero {
    background: linear-gradient(135deg, #2B3A42, #354854);
    color: var(--white-color);
    padding: 100px 20px 60px;
    text-align: center;
  }
  
  .dashboard-container h4 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .dashboard-page .card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  .dashboard-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-page .card-body {
    padding: 32px 24px;
  }
  
  .dashboard-page .btn {
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .dashboard-page .btn-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    border: none;
    color: var(--white-color);
  }
  
  .dashboard-page .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
  }
  
  .dashboard-page .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
  }
  
  .dashboard-page .btn-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%);
    border: none;
    color: var(--white-color);
  }
  
  .dashboard-page footer {
    background: #1f2937;
    color: #cbd5e1;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  
  /* === Dashboard Sidebar Navigation === */
  .dashboard-page aside {
    background: #1e293b;
    color: var(--white-color);
    width: 220px;
    height: 100vh;
    padding: 20px 15px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-page aside .logo {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
  }
  
  .dashboard-page aside .nav-link {
    color: var(--white-color);
    margin-bottom: 12px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.3s ease;
  }
  
  .dashboard-page aside .nav-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
  }
  
  /* === Chart Section Enhancements === */
  .dashboard-container .chart-section {
    margin-top: 60px;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  
  .dashboard-container .chart-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .dashboard-container .chart-section p.subheading {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .dashboard-container .chart-section .btn-group {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .dashboard-container .chart-section select {
    border-radius: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    color: var(--text-color);
    background: #f9fafb;
    transition: border-color 0.3s ease;
  }
  
  .dashboard-container .chart-section select:focus {
    border-color: var(--primary-color);
    outline: none;
  }
  

  /* Inventory Insights */
.inventory-section h3 {
    font-weight: 600;
  }
  
  .inventory-section table th, 
  .inventory-section table td {
    vertical-align: middle;
  }
  
  .inventory-section .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.7em;
  }
  

/* ======================== */
/* ====== Animations ====== */
/* ======================== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/* ==== Media Queries ===== */
/* ======================== */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .service-detail-image img {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 80px;
        text-align: center;
    }
    
    .hero-content, .hero-left {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .hero-left p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-container.reverse {
        flex-direction: column;
    }
    
    .contact-info .service-grid {
        flex-direction: column;
        align-items: center;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }
    
    nav ul li {
        margin-bottom: 10px;
    }
    
    .logo {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo {
        max-width: 150px;
        height: auto;
    }
}