/* Global Styles */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --light-color: #f8f9fa;
    --dark-color: #0f172a;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    --text-light: #e2e8f0;
    --card-bg: #1e293b;
    --border-color: #334155;
}

/* Font Face Declaration for Funnel Display */
@font-face {
    font-family: 'Funnel Display';
    src: url('../fonts/Funnel_Display/FunnelDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

/* Navigation */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background-color: rgba(15, 23, 42, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand, 
footer p {
    font-family: 'Funnel Display', sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    position: relative;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg-new.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.85);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.divider {
    max-width: 3.25rem;
    border-width: 0.2rem;
    border-color: var(--primary-color);
    margin: 1.5rem auto 2rem;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border: none;
    color: var(--text-light);
}

.card-body {
    background-color: var(--card-bg);
    color: var(--text-light);
}

.card-title {
    color: var(--text-light);
}

.card-text {
    color: var(--text-light);
    opacity: 0.9;
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: var(--card-bg);
    color: var(--text-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card img {
    transition: all 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .card-title {
    font-weight: 600;
    margin: 1rem 0;
    color: var(--text-light);
}

.service-card .card-text {
    color: var(--text-light);
    opacity: 0.9;
}

/* Testimonials Section */
.testimonial-item {
    padding: 2rem;
}

.testimonial-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 5px solid var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--text-light);
}

.testimonial-rating {
    color: #ffc107;
    margin-top: 1rem;
}

/* AI Research Papers Section */
.whitepaper-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: var(--card-bg);
    color: var(--text-light);
}

.whitepaper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.whitepaper-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.whitepaper-card:hover .card-img-top {
    transform: scale(1.05);
}

.whitepaper-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.whitepaper-card .card-text {
    color: var(--text-light);
    opacity: 0.9;
}

/* Target Audience Section */
.audience-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: var(--card-bg);
    color: var(--text-light);
    height: 100%;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.audience-card .card-body {
    padding: 1.5rem;
}

.audience-card .partner-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-right: 1.5rem;
    display: flex;
    align-items: flex-start;
    padding-top: 0.25rem;
    min-width: 40px;
}

.audience-card .partner-content {
    flex: 1;
}

.audience-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.audience-card .card-text {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to right, var(--bg-darker), var(--bg-dark));
    position: relative;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.contact-info .contact-phone,
.contact-info .contact-email {
    color: white;
    text-decoration: none;
}

.contact-info .contact-phone:hover,
.contact-info .contact-email:hover {
    text-decoration: underline;
    color: white;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-decoration: none;
}

.contact-card {
    background-color: var(--card-bg);
    border: none !important;
    overflow: hidden;
}

.contact-card .card-body {
    background-color: var(--card-bg);
    color: var(--text-light);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem;
}

.contact-form .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    color: var(--text-light);
}

.contact-form .form-control::placeholder,
.contact-form .form-select::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

/* Alert Styles */
.alert {
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Bootstrap Overrides */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e2e8f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Input Focus Styles */
input:focus, 
textarea:focus, 
select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5) !important;
}

/* Footer */
footer {
    background-color: var(--bg-darker) !important;
    color: var(--text-light) !important;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

footer a:hover {
    color: #60a5fa;
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Background Colors */
.bg-light {
    background-color: var(--bg-dark) !important;
}

.bg-dark {
    background-color: var(--bg-darker) !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        /* Fix for mobile background image issues */
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    /* Fix for contact links color on mobile */
    .contact-info a:not(.contact-phone):not(.contact-email) {
        color: white !important;
    }
    
    /* Ensure our custom contact links maintain styling */
    .contact-info .contact-phone,
    .contact-info .contact-email {
        color: white !important;
        text-decoration: none;
    }
    
    .contact-info .contact-phone:hover,
    .contact-info .contact-email:hover {
        text-decoration: underline;
    }
    
    /* Ensure social icons have no underline on mobile */
    .social-icons a {
        text-decoration: none !important;
    }
}

/* Meet the Team Section */
.team-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.team-img-container {
    position: relative;
    overflow: hidden;
    height: 240px;
    cursor: pointer;
}

/* Team image base styles */
.team-img {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Position to focus more on faces */
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-social {
    display: none; /* Hide the old social links section */
}

/* Team row for ordering */
.team-row {
    display: flex;
    flex-wrap: wrap;
}

/* Fun fact reveal */
.fun-fact {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-card:hover .fun-fact {
    transform: translateY(0);
}

.fun-fact-active {
    transform: translateY(0) !important;
}

.fun-fact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    animation: pulse 1.5s infinite;
}

.fun-fact-text {
    font-size: 0.9rem;
    color: white;
    font-weight: 400;
    line-height: 1.4;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hide skills section */
.team-skills {
    display: none;
}

.team-info {
    padding: 15px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-light);
}

.team-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.team-quote {
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
    padding: 0 5px;
}

.team-bio {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.4;
}

/* Media Queries for Team Section */
@media (min-width: 993px) {
    /* On desktop, use hover instead of click */
    .team-img-container {
        cursor: default;
    }
    
    /* Desktop ordering - Shawn in the middle */
    .team-member-cto {
        order: 1;
    }
    
    .team-member-ceo {
        order: 2;
    }
    
    .team-member-coo {
        order: 3;
    }
}

@media (max-width: 992px) {
    .team-img-container {
        height: 220px;
    }
    
    /* Prevent hover from showing fun facts on touch devices */
    .team-card:hover .fun-fact {
        transform: translateY(100%);
    }
}

@media (max-width: 768px) {
    .team-img-container {
        height: 240px;
    }
    
    .team-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .team-img-container {
        height: 220px;
    }
}

/* Slot Machine Team Styles */
#spin-team-images {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#spin-team-images:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

#spin-team-images:active {
    transform: translateY(1px);
}

#spin-team-images i {
    margin-right: 8px;
}

#spin-team-images.spinning i {
    animation: spin-button 1.5s linear infinite;
}

@keyframes spin-button {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slot-machine-window {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.slot-machine-reel {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.slot-machine-reel.spinning {
    animation: vertical-motion-blur 0.15s infinite linear;
    will-change: transform, filter;
    overflow: hidden;
}

.slot-machine-reel.spinning-slow {
    animation: vertical-motion-blur-slow 0.3s infinite linear;
    will-change: transform, filter;
    overflow: hidden;
}

@keyframes vertical-motion-blur {
    0% {
        filter: blur(4px) brightness(1.1);
        transform: translateY(-12px);
    }
    25% {
        filter: blur(6px) brightness(1.05);
        transform: translateY(-6px);
    }
    50% {
        filter: blur(4px) brightness(1);
        transform: translateY(0px);
    }
    75% {
        filter: blur(6px) brightness(1.05);
        transform: translateY(6px);
    }
    100% {
        filter: blur(4px) brightness(1.1);
        transform: translateY(12px);
    }
}

@keyframes vertical-motion-blur-slow {
    0% {
        filter: blur(3px) brightness(1.05);
        transform: translateY(-6px);
    }
    25% {
        filter: blur(4px) brightness(1.02);
        transform: translateY(-3px);
    }
    50% {
        filter: blur(3px) brightness(1);
        transform: translateY(0px);
    }
    75% {
        filter: blur(4px) brightness(1.02);
        transform: translateY(3px);
    }
    100% {
        filter: blur(3px) brightness(1.05);
        transform: translateY(6px);
    }
}

/* Additional effect for the image itself during spinning */
.slot-machine-reel.spinning .team-img,
.slot-machine-reel.spinning-slow .team-img {
    position: relative;
    z-index: 1;
}

/* Create vertical streaking effect with pseudo-elements */
.slot-machine-reel.spinning::before,
.slot-machine-reel.spinning-slow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(255,255,255,0.05) 10%, 
        rgba(255,255,255,0.1) 30%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.1) 70%,
        rgba(255,255,255,0.05) 90%,
        transparent 100%);
    z-index: 2;
    opacity: 0.7;
    animation: vertical-streak 0.08s infinite linear;
}

.slot-machine-reel.spinning-slow::before {
    animation: vertical-streak 0.15s infinite linear;
    opacity: 0.5;
}

@keyframes vertical-streak {
    0% {
        transform: translateY(-25px);
    }
    100% {
        transform: translateY(25px);
    }
}

/* Add multiple streaks for more realistic effect */
.slot-machine-reel.spinning::after,
.slot-machine-reel.spinning-slow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 12px,
        transparent 12px,
        transparent 20px
    );
    z-index: 3;
    opacity: 0.6;
    animation: vertical-streak 0.05s infinite linear;
}

.slot-machine-reel.spinning-slow::after {
    animation: vertical-streak 0.1s infinite linear;
    opacity: 0.4;
}

/* Responsive adjustments for slot machine */
@media (max-width: 768px) {
    #spin-team-images {
        margin-bottom: 2rem;
    }
}

/* Celebration animation when all styles match */
@keyframes celebration {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.team-card.celebrating {
    animation: celebration 1.5s ease infinite;
}

/* Confetti overlay */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.8;
    animation: confetti-fall 3s ease-in-out forwards;
    z-index: 10000;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(1000px) rotate(360deg);
        opacity: 0;
    }
}
