/* Custom styles for Harris Tech Solutions */

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

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animation for stats counters */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-number {
    transition: all 0.3s ease;
    opacity: 1; /* Changed from 0 to 1 for visibility */
}

.stat-number.animated {
    animation: countUp 0.8s ease-out forwards;
    opacity: 1;
}

/* Stagger animation for stats */
.stat-number:nth-child(1) { animation-delay: 0.1s; }
.stat-number:nth-child(2) { animation-delay: 0.2s; }
.stat-number:nth-child(3) { animation-delay: 0.3s; }
.stat-number:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for service cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Package card hover effects */
.package-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ accordion animations */
.faq-content {
    max-height: 0;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq-content.open {
    max-height: 200px;
    padding-top: 1rem;
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

/* Form styling */
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Navigation active state */
.nav-link.active {
    color: #3b82f6;
    font-weight: 600;
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Loading animation for dynamic content */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-icon {
        font-size: 3rem;
    }
}

/* Hide newsletter section temporarily */
section.py-20.bg-gradient-to-r.from-blue-600.to-indigo-600 {
    display: none;
}

/* Enhanced pricing card styling */
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-icon {
    transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1);
}

/* Mobile responsive pricing grid */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .pricing-card {
        transform: none !important;
        scale: none !important;
    }
}

/* Perfectly circular floating button */
.fixed.bottom-6.right-6.bg-blue-600 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fixed.bottom-6.right-6.bg-blue-600 i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure pricing badges aren't clipped */
.pricing-card { overflow: visible; }

/* FAQ single-column layout */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

/* Ongoing Support equal height cards with bottom-aligned CTA */
.support-card { display: flex; flex-direction: column; }
.support-card .support-body { flex: 1 1 auto; }
.support-card .support-cta { margin-top: auto; }
.support-card .support-cta a { display: inline-flex; justify-content: center; width: 100%; }

/* About photo: rounded rectangle instead of circle */
.about-photo {
    border-radius: 16px;
    object-fit: contain;
    object-position: top center;
    background-color: #eef2ff; /* subtle backdrop so non-filled area blends */
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a {
        color: black;
        text-decoration: none;
    }
}

/* Hero animated background (subtle moving grid) */
.hero-animated {
    position: relative;
    overflow: hidden;
}

.hero-animated::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 0 0;
    animation: heroGridMove 30s linear infinite;
    opacity: 0.35;
    pointer-events: none;
}

@keyframes heroGridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 40px 0, 0 40px; }
}
