/* Import AllyGPO Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #095192 !important;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(9, 81, 146, 0.15);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

.sign-in-btn {
    background: white;
    color: #095192;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'Open Sans', sans-serif;
	width: 180px;
	text-align: center;
}

.sign-in-btn:hover {
    background: #f8fafc;
    color: #074080;
    border-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 30%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(9,81,146,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.highlight {
    color: #095192;
    position: relative;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #095192 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(9, 81, 146, 0.25);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #074080 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(9, 81, 146, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #095192;
    border: 2px solid #095192;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #095192;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 81, 146, 0.25);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.inventory-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.1));
}

/* Inventory Animation Styles */
.central-hub {
    filter: drop-shadow(0 5px 20px rgba(59, 130, 246, 0.3));
}

.inventory-boxes .box-group {
    filter: drop-shadow(0 3px 10px rgba(59, 130, 246, 0.2));
}

.data-flows line {
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
}

.order-indicators circle {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.analytics-bars rect {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

/* Subtle hover effect for the entire animation */
.inventory-animation:hover .hero-svg {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.inventory-animation .hero-svg {
    transition: transform 0.3s ease;
}

/* RSS Feed Section */
.rss-feed {
    padding: 5rem 0;
    background: #f8fafc;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.feed-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feed-title h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

.rss-icon {
    animation: pulse 2s ease-in-out infinite;
}

.feed-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feed-nav {
    background: #095192;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feed-nav:hover {
    background: #074080;
    transform: scale(1.05);
}

.feed-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #095192;
    transform: scale(1.2);
}

.feed-content {
    position: relative;
    min-height: 300px;
}

.feed-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(9, 81, 146, 0.1);
    box-shadow: 0 8px 25px rgba(9, 81, 146, 0.08);
}

.feed-message.active {
    opacity: 1;
    transform: translateX(0);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-category {
    background: linear-gradient(135deg, #095192 0%, #1e40af 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.feed-message h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feed-message p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.message-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(9, 81, 146, 0.08);
    color: #095192;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(9, 81, 146, 0.15);
}

/* Footer */
.footer {
    background: #095192 !important;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feed-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .feed-title h2 {
        font-size: 2rem;
    }

    .feed-message {
        padding: 1.5rem;
    }

    .feed-message h3 {
        font-size: 1.5rem;
    }

    .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .inventory-animation svg {
        width: 350px;
        height: auto;
    }
    
    .btn {
        width: 200px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* RSS Feed Enhancements */
.feed-filter {
    margin-left: 1rem;
}

.category-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #095192;
    border-radius: 6px;
    background: white;
    color: #095192;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover {
    background: #095192;
    color: white;
}

.feed-refresh {
    background: #095192;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.feed-refresh:hover {
    background: #074080;
    transform: rotate(180deg);
}

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.read-more-btn {
    color: #095192;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.read-more-btn:hover {
    color: #074080;
    border-bottom-color: #095192;
}

.source-attribution {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

.last-updated {
    color: #64748b;
    font-size: 0.85rem;
    margin-left: auto;
    font-style: italic;
}

/* Subscription Form Styles */
.subscription-container {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(9, 81, 146, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(9, 81, 146, 0.1);
}

.subscription-form h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subscription-form p {
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid rgba(9, 81, 146, 0.2);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #095192;
    box-shadow: 0 0 0 3px rgba(9, 81, 146, 0.1);
}

.subscribe-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #095192 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #074080 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 81, 146, 0.25);
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #095192;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #095192;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification.show {
    transform: translateX(0);
}
