/* NeuGenity Custom Styles */

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

body {
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2B7AB5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Navigation Dropdown Enhancement */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #6B7280;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #2B7AB5 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #059669 !important;
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #9CA3AF;
}

.breadcrumb li:last-child {
    color: #1F2937;
    font-weight: 500;
}

/* Mobile breadcrumb optimization */
@media (max-width: 640px) {
    .breadcrumb {
        font-size: 16px;
        padding: 8px 0;
        margin-bottom: 16px;
    }
    
    .breadcrumb ol {
        gap: 6px;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin-left: 6px;
    }
}

/* Button Animations - All primary CTAs use green */
button, a {
    transition: all 0.3s ease;
}

.btn-primary,
.bg-neugenity-blue.text-white:not(.calculator-container) {
    background-color: #059669 !important;
}

.btn-primary:hover {
    background-color: #2B7AB5 !important;
}

/* Learn More Button Style - Green with rounded pill shape */
a[href*="Learn More"],
a:has(i.fa-arrow-right) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white !important;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    transition: all 0.3s ease;
}

a[href*="Learn More"]:hover,
a:has(i.fa-arrow-right):hover {
    background: linear-gradient(135deg, #2B7AB5 0%, #3B82F6 100%);
    box-shadow: 0 6px 20px rgba(43, 122, 181, 0.4);
    transform: translateY(-2px);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2B7AB5;
}

/* Range Slider Custom Styles */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2B7AB5;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #059669;
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2B7AB5;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #059669;
    transform: scale(1.1);
}

/* Radio Button Styles */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #2B7AB5;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="radio"]:checked {
    background: #2B7AB5;
}

input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Checkbox Styles */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #2B7AB5;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: #2B7AB5;
}

input[type="checkbox"]:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* Card Hover Effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Price Display */
.price-box {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 32px;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.price-box .price {
    font-size: 48px;
    font-weight: 800;
}

/* Phase Sections */
.phase-section {
    border-left: 4px solid #2B7AB5;
    padding-left: 20px;
    margin-bottom: 24px;
}

.phase-title {
    color: #ef4444;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Blog Card Styles */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Migration Calculator Styles */
.calculator-container {
    background: #2B7AB5;
    border-radius: 12px;
    padding: 32px;
    color: white;
}

.calculator-result {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
}

.calculator-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.calculator-disclaimer {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #059669;
    padding: 16px;
    font-size: 14px;
    font-style: italic;
    margin-top: 20px;
}

/* Table Styles for Blog Posts */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

table th {
    background: #2B7AB5;
    color: white;
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #f9fafb;
}

/* Code Blocks */
pre {
    background: #1F2937;
    color: #059669;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Slow Pulse Animation for Google Pulse - Enhanced Visibility with Color Cycling and Glow */
@keyframes slowPulse {
    0% {
        color: #2B7AB5; /* Professional Blue */
        transform: scale(1);
        text-shadow: 0 0 10px rgba(43, 122, 181, 0.5), 0 0 20px rgba(43, 122, 181, 0.3);
    }
    25% {
        color: #059669; /* Professional Green */
        transform: scale(1.08);
        text-shadow: 0 0 10px rgba(5, 150, 105, 0.6), 0 0 20px rgba(5, 150, 105, 0.4);
    }
    50% {
        color: #2B7AB5; /* Professional Blue */
        transform: scale(1);
        text-shadow: 0 0 10px rgba(43, 122, 181, 0.5), 0 0 20px rgba(43, 122, 181, 0.3);
    }
    75% {
        color: #059669; /* Professional Green */
        transform: scale(1.08);
        text-shadow: 0 0 10px rgba(5, 150, 105, 0.6), 0 0 20px rgba(5, 150, 105, 0.4);
    }
    100% {
        color: #2B7AB5; /* Professional Blue */
        transform: scale(1);
        text-shadow: 0 0 10px rgba(43, 122, 181, 0.5), 0 0 20px rgba(43, 122, 181, 0.3);
    }
}

.pulse-slow {
    animation: slowPulse 3s ease-in-out infinite;
    font-weight: 600;
}

/* Gentle glow pulse for icons */
@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(43, 122, 181, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(43, 122, 181, 0.6));
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Success Message */
.success-message {
    background: #059669;
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Error Message */
.error-message {
    background: #ef4444;
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Utility Classes */
.text-neugenity-blue {
    color: #2B7AB5;
}

.text-neugenity-green {
    color: #059669;
}

.text-neugenity-dark {
    color: #1F2937;
}

.bg-neugenity-blue {
    background-color: #2B7AB5;
}

.bg-neugenity-green {
    background-color: #059669;
}

.bg-neugenity-dark {
    background-color: #1F2937;
}

/* Brand Gradient Logo - Dark to Light, Left to Right */
.neugenity-gradient-logo {
    background: linear-gradient(90deg, #2B7AB5 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Panel Gradient - Lighter Blue to Green (Left to Right) */
.hero-gradient {
    background: linear-gradient(90deg, #2B7AB5 0%, #2E9BA3 50%, #059669 100%);
    position: relative;
}

/* Connection Dots Pattern for Hero Sections */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 2.5px, transparent 2.5px);
    background-size: 
        150px 150px,
        200px 200px,
        175px 175px;
    background-position: 
        0 0,
        50px 50px,
        100px 25px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.hero-gradient > * {
    position: relative;
    z-index: 2;
}

/* CTA Panel Gradient - Lighter Blue to Green (Left to Right) */
.cta-gradient {
    background: linear-gradient(90deg, #2B7AB5 0%, #059669 100%);
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Flip Card Styles */
.flip-card {
    perspective: 1000px;
    height: 680px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Hover effect for flip cards */
.flip-card:hover .flip-card-front {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Learn More Button in cards */
.learn-more-btn {
    transition: all 0.3s ease;
    margin-top: auto;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure content wraps properly inside flip cards for alignment */
.flip-card-front > *:not(.learn-more-btn):not(:last-child) {
    flex-shrink: 0;
}

/* Price badge styling */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    margin-bottom: 16px;
}

/* Get Started button styling */
.get-started-btn {
    transition: all 0.3s ease;
    margin-top: 8px;
}

.get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-result {
        font-size: 36px;
    }
    
    .price-box .price {
        font-size: 36px;
    }
    
    .flip-card {
        height: auto;
        min-height: 680px;
    }
    
    .flip-card-front,
    .flip-card-back {
        position: relative;
        height: auto;
        min-height: 680px;
    }
}