/* Custom Styles for Azcendra */

:root {
    --brand-gold: #e9d191;
    --brand-teal: #009F97;
    --brand-navy: #101226;
    --brand-blue: #002b4c;
    --font-parkinsans: 'Parkinsans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-parkinsans);
}

/* Offset for sticky header so section titles are always fully visible */
section[id] {
    scroll-margin-top: 100px;
}

/* Rounded Gradient Button */
.rounded-gradient-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    color: white;
    background: linear-gradient(to right, #002b4c, #e9d191);
    overflow: hidden;
    transition: box-shadow 0.7s;
}

.rounded-gradient-btn:hover {
    box-shadow: 0 0 20px rgba(233, 209, 145, 0.5);
}

.rounded-gradient-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #e9d191, #002b4c);
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}

.rounded-gradient-btn:hover::before {
    opacity: 1;
}

.rounded-gradient-btn span {
    position: relative;
    z-index: 10;
}

/* Header Navigation Button (Solid Primary Brand Blue with Premium Gold Hover) */
.header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white !important;
    background-color: var(--brand-blue);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 43, 76, 0.25);
    cursor: pointer;
}

.header-btn:hover {
    background-color: var(--brand-gold);
    color: var(--brand-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 209, 145, 0.45);
}

.header-btn:active {
    transform: translateY(0);
}

.header-btn span {
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes float-bg {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, -20px); }
    100% { transform: translate(0, 0); }
}

.floating-bg-animation {
    animation: float-bg 20s ease-in-out infinite;
}

.feature-card {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden; /* For the glare */
}

.feature-card:hover {
    transition: transform 0.1s ease-out; /* Slight damping for movement */
}

.feature-card .card-icon,
.feature-card .card-title,
.feature-card .card-desc {
    transition: transform 0.1s ease-out;
}

/* Card Icons */
.card-icon i {
    stroke-width: 2px;
}

/* Footer Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #575F5E;
    transition: all 0.3s;
}

.social-icon:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.footer-link {
    color: #655B5B;
    font-size: 14px;
    line-height: 21px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--brand-blue);
}

/* Video Card Styles */
.video-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card img {
    filter: brightness(0.9);
}

.video-card:hover img {
    filter: brightness(1.1);
}

.video-card h3 {
    height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.15;
}

.video-card .card-content-overlay {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card:hover .card-content-overlay {
    transform: translateY(0);
}

.video-card .description-reveal {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Floating Animation for Background Blobs */
@keyframes float-blob {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 20px); }
}

.floating-blob-animation {
    animation: float-blob 15s ease-in-out infinite;
}

/* Timeline Glow Animation */
@keyframes glow-line {
    0% { transform: translateX(-150%) scaleY(1); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateX(0%) scaleY(1.5); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(150%) scaleY(1); opacity: 0; }
}

.glow-line-animation {
    width: 40%;
    background: linear-gradient(to right, transparent, #002b4c, #e9d191, #002b4c, transparent);
    box-shadow: 0 0 25px #e9d191, 0 0 50px rgba(0, 43, 76, 0.5);
    filter: blur(1px);
    animation: glow-line 3s ease-in-out infinite;
}

/* Node Activation Pulse */
@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(233, 209, 145, 0.2), 0 0 0 0 rgba(233, 209, 145, 0.4); }
    50% { box-shadow: 0 0 30px rgba(233, 209, 145, 0.4), 0 0 0 10px rgba(233, 209, 145, 0); }
}

.node-active-pulse {
    animation: node-pulse 2s infinite ease-in-out;
}

/* Mobile Menu Transitions */
#mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 99999 !important;
    display: none;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 3rem 2rem !important;
    gap: 2rem !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobile-menu.active {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: #ffffff !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}
