/* ==========================================================================
   PURCHASING PAGE CSS - EXACT ORIGINAL MATCH
   Carefully extracted from styles.css with proper styling
   ========================================================================== */

/* ==========================================================================
   PURCHASING HERO SECTION
   ========================================================================== */

   .purchasing-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    margin-top: 80px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.purchasing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/purchasing/hardwarebackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    z-index: 1;
}

.purchasing-hero.animate::before {
    opacity: 1;
}

.purchasing-hero.animate {
    opacity: 1;
    transform: translateY(0);
}

.purchasing-hero .container {
    position: relative;
    z-index: 2;
}

.purchasing-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.purchasing-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   PURCHASING CONTENT SECTION
   ========================================================================== */

.purchasing-content-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.purchasing-intro-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.purchasing-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.purchasing-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* ==========================================================================
   ANIMATIONS - EXACT ORIGINAL BEHAVIOR
   ========================================================================== */

/* Purchasing Page animation - immediate visibility */
.purchasing-content-section .animate-fade-in-up,
.purchasing-intro-section .animate-fade-in-up {
    transition: all 0.8s ease !important;
    transition-delay: 0s !important;
}

/* Animate immediate for purchasing hero */
.purchasing-hero .animate-fade-in-up {
    transition: all 0.8s ease;
}

.animate-immediate {
    opacity: 1;
}

.animate-immediate .animate-fade-in-up {
    animation: fadeInUpImmediate 0.8s ease-out 0.3s both;
}

.animate-immediate .stagger-animation .animate-item {
    animation: fadeInUpImmediate 0.8s ease-out both;
}

.animate-immediate .stagger-animation .animate-item:nth-child(1) { 
    animation-delay: 0.5s; 
}

.animate-immediate .stagger-animation .animate-item:nth-child(2) { 
    animation-delay: 0.6s; 
}

.animate-immediate .stagger-animation .animate-item:nth-child(3) { 
    animation-delay: 0.7s; 
}

.animate-immediate .stagger-animation .animate-item:nth-child(4) { 
    animation-delay: 0.8s; 
}

.animate-immediate .stagger-animation .animate-item:nth-child(5) { 
    animation-delay: 0.9s; 
}

.animate-immediate .stagger-animation .animate-item:nth-child(6) { 
    animation-delay: 1.0s; 
}

.animate-immediate .stagger-animation .animate-item:nth-child(7) { 
    animation-delay: 1.1s; 
}

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

/* Staggered animations for grid items */
.stagger-animation .animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-animation.animate .animate-item:nth-child(1) { 
    transition-delay: 0.1s; 
}

.stagger-animation.animate .animate-item:nth-child(2) { 
    transition-delay: 0.2s; 
}

.stagger-animation.animate .animate-item:nth-child(3) { 
    transition-delay: 0.3s; 
}

.stagger-animation.animate .animate-item:nth-child(4) { 
    transition-delay: 0.4s; 
}

.stagger-animation.animate .animate-item:nth-child(5) { 
    transition-delay: 0.5s; 
}

.stagger-animation.animate .animate-item:nth-child(6) { 
    transition-delay: 0.6s; 
}

.stagger-animation.animate .animate-item:nth-child(7) { 
    transition-delay: 0.7s; 
}

.stagger-animation.animate .animate-item:nth-child(8) { 
    transition-delay: 0.8s; 
}

.stagger-animation.animate .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .purchasing-hero {
        background-attachment: scroll;
        margin-top: 70px;
        height: 35vh;
        min-height: 300px;
    }
    
    .purchasing-hero h1 {
        font-size: 2.2rem;
    }
    
    .purchasing-hero .hero-content {
        padding: 0 15px;
    }
    
    .purchasing-content-section {
        padding: 60px 0;
    }
    
    .purchasing-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .purchasing-intro-section {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .purchasing-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .purchasing-hero h1 {
        font-size: 2rem;
    }
    
    .purchasing-hero .hero-content {
        padding: 0 10px;
    }
    
    .purchasing-content-section {
        padding: 40px 0;
    }
    
    .purchasing-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .purchasing-intro-section {
        padding: 0 15px;
    }
}