/**
 * North Head Digital - Component Styles
 * Card components, buttons, forms, and UI elements
 */

/* ===== NAVIGATION COMPONENTS ===== */

/* Client Portal Link Styling - Subtle & Professional */
.nav-link-portal {
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.nav-link-portal:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.nav-link-portal:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.nav-link-portal:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== BUTTON COMPONENTS ===== */

/* Enhanced Buttons with liquid effect */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: none;
    transition: all 400ms var(--elastic);
    position: relative;
    overflow: hidden;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-vibrant);
    color: var(--white);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4),
               0 10px 20px rgba(118, 75, 162, 0.3),
               inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.5),
               0 15px 30px rgba(118, 75, 162, 0.4),
               inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    backdrop-filter: blur(10px);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* ===== CARD COMPONENTS ===== */

/* Enhanced Feature Cards with 3D effect */
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 500ms var(--ease-out);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: var(--gradient-vibrant);
    opacity: 0;
    transition: opacity 500ms ease;
    z-index: -1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.4s ease;
    z-index: 1;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3),
               0 8px 20px rgba(118, 75, 162, 0.2),
               inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover::after {
    left: 100%;
    opacity: 1;
}

.feature-card:hover h4 {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.feature-card:hover p {
    transform: translateY(-1px);
}

.feature-card h4,
.feature-card p {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-vibrant);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4),
               inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 500ms ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5),
               inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--white);
    stroke-width: 2px;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card h4 {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.feature-card p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.feature-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 300ms ease;
    position: relative;
    cursor: none;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-vibrant);
    transition: width 300ms ease;
}

.feature-link:hover {
    gap: 12px;
    color: var(--white);
}

.feature-link:hover::after {
    width: 100%;
}

.feature-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2px;
    transition: transform 300ms ease;
}

.feature-link:hover svg {
    transform: translateX(4px);
}

/* ===== PRICING CARDS ===== */

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 500ms var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    will-change: transform;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15),
               0 4px 12px rgba(118, 75, 162, 0.1),
               inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.4s ease;
    z-index: 1;
    opacity: 0;
    border-radius: 24px;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3),
               0 8px 20px rgba(118, 75, 162, 0.2),
               inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card:hover::before {
    left: 100%;
    opacity: 1;
}

.pricing-card:hover .pricing-header h3 {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.pricing-card:hover .price {
    transform: scale(1.05);
}

.pricing-card:hover .btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pricing-card .pricing-header,
.pricing-card .pricing-content,
.pricing-card .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-vibrant);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 20;
    white-space: nowrap;
    pointer-events: none;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-header h3 {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.currency {
    font-size: 24px;
    color: var(--gray-400);
    margin-right: 4px;
    display: inline;
}

.amount {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.period {
    font-size: 18px;
    color: var(--gray-400);
    margin-left: 4px;
    display: inline;
    white-space: nowrap;
}

.duration {
    color: var(--gray-400);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-content h4 {
    margin-bottom: var(--space-lg);
    color: var(--white);
    text-align: center;
    min-height: 24px;
}

.pricing-content ul {
    list-style: none;
    margin-bottom: var(--space-lg);
    min-height: 120px;
    flex-grow: 1;
}

.pricing-content li {
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
    padding-left: 24px;
    position: relative;
}

.pricing-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.pricing-note {
    color: var(--gray-600);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    margin-bottom: var(--space-lg);
    margin-top: auto;
}

.pricing-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* ===== INDUSTRY CARDS ===== */

.industry-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 400ms var(--ease-out);
    text-align: center;
}

.industry-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.industry-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-vibrant);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.industry-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    stroke-width: 2px;
    fill: none;
}

.industry-card h4 {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.industry-card p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== CASE STUDY CARDS ===== */

.case-study-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 500ms var(--ease-out);
    opacity: 0;
    animation: fadeInUp 800ms var(--ease-out) forwards;
    position: relative;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
    transform: scaleX(0);
    transition: transform 500ms ease;
    transform-origin: left;
}

.case-study-card:nth-child(1) { animation-delay: 100ms; }
.case-study-card:nth-child(2) { animation-delay: 200ms; }
.case-study-card:nth-child(3) { animation-delay: 300ms; }

.case-study-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3),
               0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.case-study-card:hover::before {
    transform: scaleX(1);
}

.case-study-image {
    height: 220px;
    background: var(--gradient-vibrant);
    position: relative;
    overflow: hidden;
}

.case-study-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite;
}

.case-study-content {
    padding: var(--space-xl);
}

.case-study-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.case-study-card h4 {
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.case-study-card p {
    color: var(--gray-400);
    margin-bottom: 0;
}

.case-study-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ===== VALUE CARDS ===== */

.value-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 500ms ease;
    overflow: hidden;
    will-change: transform;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-vibrant);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.value-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    stroke-width: 2px;
    fill: none;
}

.value-card h4 {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.value-card p {
    color: var(--gray-400);
    line-height: 1.6;
}

/* ===== STAT CARDS ===== */

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    padding: var(--space-2xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 400ms ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    will-change: transform;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.4s ease;
    z-index: 1;
    opacity: 0;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3),
               inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card:hover::before {
    left: 100%;
    opacity: 1;
}

.stat-card:hover .stat-number {
    color: var(--primary-light);
    transform: scale(1.1);
}

.stat-card:hover .stat-description {
    transform: translateY(-2px);
}

.stat-number,
.stat-description {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat-description {
    color: var(--gray-400);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== FORM COMPONENTS ===== */

.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-mesh);
    opacity: 0.1;
    animation: meshMove 30s ease infinite;
}

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: var(--white);
    transition: all 300ms ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1),
               0 0 20px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
    color: var(--gray-600);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

/* ===== INFO COMPONENTS ===== */

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 400ms ease;
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(8px);
}

.info-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-vibrant);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.info-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
    stroke-width: 2px;
    fill: none;
}

.info-text h5 {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--white);
    font-weight: 600;
}

.info-text p {
    margin: 0;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ===== CALENDAR WIDGET ===== */

.calendar-widget {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.calendar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-vibrant);
    animation: scan 3s linear infinite;
}

.calendar-widget h4 {
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.calendar-description {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.calendar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calendar-placeholder {
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== LOADING STATES ===== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}
