/* AGI Jesse Brand Guidelines - Official Dashboard Styles */

/* AGI Jesse Brand Guidelines Implementation */

/* AGI Jesse Brand Colors */
:root {
    /* Primary Brand Colors */
    --agi-deep-blue: #1D2740;
    --agi-sky-blue: #2284F4;
    --agi-gold: #E3BF5F;
    
    /* Secondary Colors */
    --agi-aqua-teal: #4BD0A3;
    --agi-red-alert: #E32726;
    --agi-neutral-grey: #4E4C4F;
    
    /* Extended Palette */
    --agi-deep-blue-light: #2a3654;
    --agi-deep-blue-dark: #151e2e;
    --agi-sky-blue-hover: #1a6dd1;
    --agi-gold-hover: #d4a84a;
    
    /* Subtle Glass Variables */
    --agi-glass-bg: rgba(255, 255, 255, 0.04);
    --agi-glass-border: rgba(255, 255, 255, 0.08);
}

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Inter', sans-serif;
    background-color: var(--agi-deep-blue);
}

/* Typography System */
.font-roboto {
    font-family: 'Roboto', 'Inter', sans-serif;
}

.font-roboto-medium {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 500;
}

.font-roboto-bold {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 700;
}

/* Custom Tailwind Classes */
.bg-agi-deep-blue {
    background-color: var(--agi-deep-blue);
}

.bg-agi-deep-blue-light {
    background-color: var(--agi-deep-blue-light);
}

.bg-agi-sky-blue {
    background-color: var(--agi-sky-blue);
}

.bg-agi-gold {
    background-color: var(--agi-gold);
}

.text-agi-sky-blue {
    color: var(--agi-sky-blue);
}

.text-agi-gold {
    color: var(--agi-gold);
}

.text-agi-aqua-teal {
    color: var(--agi-aqua-teal);
}

.border-agi-sky-blue {
    border-color: var(--agi-sky-blue);
}

.border-agi-gold {
    border-color: var(--agi-gold);
}

.hover\:bg-agi-sky-blue-hover:hover {
    background-color: var(--agi-sky-blue-hover);
}

.hover\:bg-agi-gold-hover:hover {
    background-color: var(--agi-gold-hover);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

/* AGI Jesse Brand Card Styles */
.problem-card, .product-card, .poc-card, .business-card, .team-card, .vision-card, .advantage-card, .gtm-step {
    background-color: var(--agi-deep-blue-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--agi-neutral-grey);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.problem-card:hover, .product-card:hover, .poc-card:hover, .business-card:hover, .team-card:hover, .vision-card:hover, .advantage-card:hover, .gtm-step:hover {
    border-color: var(--agi-sky-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(34, 132, 244, 0.15);
}

/* AGI Jesse Brand Button Styles */

/* Primary Action Button */
.btn-primary {
    background-color: var(--agi-sky-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--agi-sky-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 132, 244, 0.3);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 2px rgba(34, 132, 244, 0.4);
}

.btn-primary:disabled {
    background-color: var(--agi-neutral-grey);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary Button (Outline) */
.btn-secondary {
    background-color: transparent;
    color: var(--agi-sky-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid var(--agi-sky-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--agi-sky-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 132, 244, 0.3);
}

/* Special CTA Button (Gold) */
.btn-cta {
    background-color: var(--agi-gold);
    color: var(--agi-deep-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--agi-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(227, 191, 95, 0.4);
}

/* POC Cards Special Styling */
.poc-card {
    position: relative;
    overflow: hidden;
}

.poc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 132, 244, 0.1), transparent);
    transition: left 0.5s;
}

.poc-card:hover::before {
    left: 100%;
}

/* AGI Jesse Brand Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--agi-sky-blue), var(--agi-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Button Hover Effects */
button {
    transition: all 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
}

/* Navigation Active State */
nav a.active {
    color: #3b82f6;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/* Nav hover underline (subtle grow) */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(34,132,244,0.6), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 150ms ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Light Theme Styles */
.light-theme {
    background-color: #ffffff; /* bg-white */
    color: #111827; /* text-gray-900 */
}

.light-theme header {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #e5e7eb; /* gray-200 */
}

.light-theme .problem-card,
.light-theme .product-card,
.light-theme .poc-card,
.light-theme .business-card,
.light-theme .team-card {
    background-color: #f9fafb; /* gray-50 */
    border-color: #e5e7eb; /* gray-200 */
}

.light-theme .problem-card:hover,
.light-theme .product-card:hover,
.light-theme .poc-card:hover,
.light-theme .business-card:hover,
.light-theme .team-card:hover {
    border-color: #d1d5db; /* gray-300 */
}

.light-theme .bg-gray-800 {
    background-color: #f3f4f6; /* gray-100 */
}

.light-theme .bg-gray-800\/50 {
    background-color: #f9fafb; /* gray-50 */
}

.light-theme .text-gray-400 {
    color: #4b5563; /* gray-600 */
}

.light-theme .text-gray-300 {
    color: #374151; /* gray-700 */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .problem-card, .product-card, .poc-card, .business-card, .team-card {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Cinematic Storytelling Styles */

/* Full viewport sections for dramatic moments */
.cinematic-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Dramatic typography scaling */
.cinematic-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.cinematic-subtitle {
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    opacity: 0.9;
}

/* Staged reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.reveal-fade.visible {
    opacity: 1;
}

/* Staggered animation delays */
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }
.reveal-delay-4 { transition-delay: 0.8s; }
.reveal-delay-5 { transition-delay: 1s; }

/* Cinematic background effects */
.cinematic-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(34, 132, 244, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(227, 191, 95, 0.1) 0%, transparent 50%);
    animation: ambient-shift 20s ease-in-out infinite;
}

@keyframes ambient-shift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Section transitions */
.section-transition {
    position: relative;
    z-index: 1;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--agi-deep-blue));
    z-index: -1;
}

/* POC showcase emphasis (sales funnel climax) */
.poc-climax {
    position: relative;
    background: linear-gradient(135deg, var(--agi-deep-blue) 0%, var(--agi-deep-blue-dark) 100%);
}

.poc-climax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 132, 244, 0.05) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Dramatic call-to-action styling */
.cta-dramatic {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--agi-sky-blue), var(--agi-gold));
    color: var(--agi-deep-blue);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.cta-dramatic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--agi-gold), var(--agi-sky-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-dramatic:hover::before {
    opacity: 1;
}

.cta-dramatic span {
    position: relative;
    z-index: 1;
}

.cta-dramatic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 132, 244, 0.3);
}

/* Story progress indicator */
.story-progress {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-dot.active {
    background: var(--agi-sky-blue);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(34, 132, 244, 0.5);
}

/* Mobile cinematic adjustments */
@media (max-width: 768px) {
    .cinematic-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .story-progress {
        display: none;
    }
    
    .reveal-up {
        transform: translateY(30px);
    }
}
