:root {
    /* Color Palette - Premium Modern */
    --primary-color: #2563eb; /* Vibrant Blue */
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent-color: #f97316; /* Orange */
    --secondary-color: #64748b; /* Slate */
    
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --success-color: #10b981;
    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 12px;
}

/* Logo Visibility - Only show light logo */
.logo-dark { 
    display: none !important; 
}

/* Reset & Base Styles */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* Utilities */
.text-gradient-orange-blue {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.bg-surface { background-color: var(--surface-color); }

/* Buttons Overrides */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* Navbar Customization */
.navbar-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-toggler {
    color: var(--text-primary);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(252, 165, 165, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 992px) {
    .hero-title { font-size: 4rem; }
}

.hero-img {
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.trust-badge {
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Feature Cards */
.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: var(--border-color);
    display: none;
}

@media (min-width: 992px) {
    .stat-item:not(:last-child)::after {
        display: block;
    }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Circular Inventory Cycle Diagram */
.inventory-cycle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.cycle-ring {
    position: relative;
    width: 520px;
    height: 520px;
    max-width: 100%;
    aspect-ratio: 1;
}

.cycle-segment {
    position: absolute;
    width: 100%;
    height: 100%;
}

.segment-capital {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.segment-inventory {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.segment-sales {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.segment-returns {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.segment-icon-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

/* Position each segment's icon - adjusted for no overlap */
.segment-capital .segment-icon-container {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.segment-inventory .segment-icon-container {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.segment-sales .segment-icon-container {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.segment-returns .segment-icon-container {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.segment-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
    transition: all 0.4s ease;
}

.segment-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    border-width: 4px;
}

.segment-icon .material-icons-round {
    font-size: 38px;
    color: var(--primary-color);
}

.segment-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: capitalize;
    letter-spacing: 0.02em;
    background: var(--surface-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Create the circular path with arrows */
.cycle-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    height: 62%;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    opacity: 0.5;
}

/* Arrow decorations positioned around the circle */
.cycle-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 80deg,
        var(--primary-color) 80deg,
        var(--primary-color) 100deg,
        transparent 100deg,
        transparent 170deg,
        var(--primary-color) 170deg,
        var(--primary-color) 190deg,
        transparent 190deg,
        transparent 260deg,
        var(--primary-color) 260deg,
        var(--primary-color) 280deg,
        transparent 280deg,
        transparent 350deg,
        var(--primary-color) 350deg,
        var(--primary-color) 10deg,
        transparent 10deg
    );
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Center Logo */
.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125px;
    height: 125px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
    z-index: 10;
}

.cycle-center img {
    max-width: 70%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cycle-ring {
        width: 450px;
        height: 450px;
    }

    .segment-icon {
        width: 75px;
        height: 75px;
    }

    .segment-icon .material-icons-round {
        font-size: 34px;
    }

    .segment-label {
        font-size: 0.88rem;
        padding: 0.35rem 0.9rem;
    }

    .cycle-center {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .cycle-ring {
        width: 380px;
        height: 380px;
    }

    .segment-icon {
        width: 65px;
        height: 65px;
        border-width: 2.5px;
    }

    .segment-icon .material-icons-round {
        font-size: 30px;
    }

    .segment-label {
        font-size: 0.82rem;
        padding: 0.32rem 0.8rem;
    }

    .cycle-center {
        width: 95px;
        height: 95px;
    }
    
    /* Adjust positions for smaller screens */
    .segment-capital .segment-icon-container {
        top: 3%;
    }

    .segment-inventory .segment-icon-container {
        right: 3%;
    }

    .segment-sales .segment-icon-container {
        bottom: 3%;
    }

    .segment-returns .segment-icon-container {
        left: 3%;
    }
}

@media (max-width: 576px) {
    .cycle-ring {
        width: 320px;
        height: 320px;
    }

    .segment-icon {
        width: 58px;
        height: 58px;
    }

    .segment-icon .material-icons-round {
        font-size: 26px;
    }

    .segment-label {
        font-size: 0.75rem;
        padding: 0.28rem 0.7rem;
    }

    .cycle-center {
        width: 80px;
        height: 80px;
    }
    
    /* Further adjust positions for very small screens */
    .segment-capital .segment-icon-container {
        top: 2%;
    }

    .segment-inventory .segment-icon-container {
        right: 2%;
    }

    .segment-sales .segment-icon-container {
        bottom: 2%;
    }

    .segment-returns .segment-icon-container {
        left: 2%;
    }
}

@media (max-width: 400px) {
    .cycle-ring {
        width: 280px;
        height: 280px;
    }

    .segment-icon {
        width: 50px;
        height: 50px;
    }

    .segment-icon .material-icons-round {
        font-size: 22px;
    }

    .segment-label {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .cycle-center {
        width: 70px;
        height: 70px;
    }
}

/* Model Subtitle Styling */
.model-subtitle {
    background: rgba(37, 99, 235, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(
        180deg,
        var(--bg-color) 0%,
        rgba(37, 99, 235, 0.03) 100%
    );
}

.contact-card {
    background: var(--surface-color);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.form-control, .form-select {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.form-label {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.copyright {
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* AOS Fixes */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* Radio Button Styling */
.form-check-input[type="radio"] {
    border: 2px solid #64748b;
    border-color: #64748b;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input[type="radio"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}
