/* Softnivo IT Solutions - Custom Styles */

/* ============================================
   Layout Shift Prevention
   ============================================ */
/* Reserved height for navigation to prevent CLS during font loading */
#mainNav {
    min-height: 64px;
    contain: layout style;
}

/* Prevent layout shifts in navigation container */
#mainNav .hidden.lg\:flex {
    min-height: 48px;
    min-width: 739px;
    /* Match actual rendered width */
}

/* Reserve space for navigation links to prevent CLS */
#mainNav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/* Reserve space for dropdown chevron icons */
#mainNav .fa-chevron-down {
    width: 10px;
    height: 10px;
    display: inline-block;
}

/* Reserve space for Get Quote button */
#mainNav .btn-primary {
    min-width: 100px;
    min-height: 44px;
}

/* ============================================
   Base Styles & Typography
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Gradient Utilities
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #4169E1, #00C4CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #4169E1, #00C4CC);
}

.gradient-bg-dark {
    background: linear-gradient(135deg, #1E3A8A, #4169E1);
}

/* ============================================
   Hexagon Pattern Background
   ============================================ */
.hexagon-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%234169E1' fill-opacity='0.05'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   Glass Effect
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ============================================
   Card Hover Effects
   ============================================ */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(65, 105, 225, 0.15);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #4169E1, #00C4CC);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4169E1;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #4169E1;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #4169E1;
    color: #fff;
}

/* ============================================
   Navigation Styles
   ============================================ */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00C4CC;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #4169E1;
}

.nav-link.active::after {
    width: 100%;
}

/* ============================================
   Service Icon
   ============================================ */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4169E1, #00C4CC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.card-hover:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   Stats & Numbers
   ============================================ */
.stat-number {
    text-shadow: 0 0 40px rgba(0, 196, 204, 0.5);
}

/* ============================================
   Portfolio Overlay
   ============================================ */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.9), rgba(0, 196, 204, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* ============================================
   Tech Scroll Animation
   ============================================ */
.tech-scroll-container {
    overflow: hidden;
    white-space: nowrap;
}

.tech-scroll {
    display: inline-flex;
    animation: scroll 25s linear infinite;
}

.tech-scroll:hover {
    animation-play-state: paused;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: #00C4CC;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================
   Form Inputs
   ============================================ */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #00C4CC;
    box-shadow: 0 0 0 4px rgba(0, 196, 204, 0.1);
    outline: none;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#4169E1, #00C4CC);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E3A8A;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1E3A8A, #4169E1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* ============================================
   Back to Top Button
   ============================================ */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.4);
}

/* ============================================
   Skeleton Loading
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .stat-number {
        font-size: 3rem !important;
    }
}

/* ============================================
   Page Hero Section
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #4169E1, #00C4CC);
    padding-top: 120px;
    padding-bottom: 60px;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    position: relative;
    padding-left: 80px;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4169E1, #00C4CC);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(65, 105, 225, 0.15);
}

.pricing-card.featured {
    border: 2px solid #4169E1;
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4169E1, #00C4CC);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}