/* CyberShield Partners - Custom Styles */

/* CSS Custom Properties for Brand Colors */
:root {
    --cybershield-navy: #1e3a8a;
    --cybershield-blue: #2563eb;
    --cybershield-light-blue: #3b82f6;
    --cybershield-gray: #6b7280;
    --cybershield-light-gray: #f8fafc;
    --cybershield-dark-gray: #374151;
    --cybershield-accent: #1d4ed8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--cybershield-navy);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--cybershield-gray);
    line-height: 1.7;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation Enhancements */
.navbar-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-logo {
    transition: transform 0.3s ease;
}

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

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, var(--cybershield-light-gray) 0%, #ffffff 50%, var(--cybershield-light-gray) 100%);
}

.hero-card {
    background: linear-gradient(135deg, var(--cybershield-navy) 0%, #1e40af 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Service Cards */
.service-card {
    background: var(--cybershield-light-gray);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(13, 59, 102, 0.2);
    border-color: var(--cybershield-light-blue);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: var(--cybershield-navy);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--cybershield-blue);
    transform: rotate(5deg) scale(1.1);
}

/* Value Proposition Section */
.value-prop-bg {
    background: linear-gradient(135deg, var(--cybershield-navy) 0%, #1e40af 100%);
    position: relative;
}

.value-prop-bg::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(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.value-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    background: var(--cybershield-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--cybershield-light-blue);
    transform: scale(1.1);
}

/* Team Cards */
.team-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--cybershield-light-blue);
}

.team-avatar {
    width: 6rem;
    height: 6rem;
    background: var(--cybershield-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    background: var(--cybershield-blue);
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    background: var(--cybershield-light-gray);
    border-radius: 1rem;
    padding: 2rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: var(--cybershield-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cybershield-navy);
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--cybershield-navy);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--cybershield-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(13, 59, 102, 0.3);
}

.btn-secondary {
    border: 2px solid var(--cybershield-navy);
    color: var(--cybershield-navy);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--cybershield-navy);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Contact Cards */
.contact-card {
    background: var(--cybershield-navy);
    color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    background: var(--cybershield-light-gray);
    border-radius: 1rem;
    padding: 2rem;
}

/* Footer */
.footer {
    background: var(--cybershield-navy);
    color: #ffffff;
    padding: 3rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #ffffff;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.footer-links a {
    color: var(--cybershield-light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-links a {
    color: var(--cybershield-light-blue);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-card {
        margin-top: 2rem;
        padding: 1.5rem !important;
    }
    
    .hero-card h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-card .flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    
    .hero-card .fas.fa-shield-alt {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Ensure blue box text is fully visible on mobile */
    .hero-card h3 {
        font-size: 1.25rem !important;
        white-space: normal !important;
        word-break: break-word;
    }
    
    .bg-cybershield-navy h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .contact-card h3 {
        font-size: 1.25rem !important;
    }
    
    .hero-card {
        padding: 1.25rem !important;
    }
    
    .contact-card {
        padding: 1.25rem !important;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

/* Custom Checkmarks */
.check-icon {
    color: var(--cybershield-blue);
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--cybershield-navy) 0%, var(--cybershield-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Logo Blending */
.footer-logo-blend {
    mix-blend-mode: screen;
    filter: contrast(1.2) brightness(1.1);
}

/* Alternative approach for better logo display on navy background */
@supports (mix-blend-mode: screen) {
    .footer-logo-blend {
        mix-blend-mode: screen;
    }
}

@supports not (mix-blend-mode: screen) {
    .footer-logo-blend {
        filter: contrast(1.5) brightness(1.3);
    }
}

/* Text Display Fixes for Blue Boxes */
.hero-card h3, 
.value-prop-bg h2,
.contact-card h3 {
    color: #ffffff !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.hero-card .flex {
    align-items: flex-start !important;
    flex-wrap: nowrap;
    gap: 1rem;
}

.hero-card .flex > div {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

/* Ensure blue box content is fully visible */
.bg-cybershield-navy {
    min-height: fit-content;
    height: auto;
    overflow: visible;
}

.bg-cybershield-navy h2,
.bg-cybershield-navy h3,
.bg-cybershield-navy p {
    color: #ffffff;
    text-overflow: clip;
    overflow: visible;
    white-space: normal;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--cybershield-navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cybershield-blue);
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
    outline: 2px solid var(--cybershield-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--cybershield-navy);
    }
    
    .team-card {
        border: 2px solid var(--cybershield-navy);
    }
}

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