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

/* ==========================================================================
   INDUSTRIES HERO SECTION
   ========================================================================== */

   .industries-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/market/snad.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 40vh;
    min-height: 350px;
    margin-top: 80px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

.industries-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.industries-hero p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   INDUSTRIES SECTION
   ========================================================================== */

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

.industries-intro-text {
    text-align: center;
    margin-bottom: 60px;
}

.industries-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 0;
    position: relative;
}

.industries-intro-text .certification-intro {
    max-width: none;
    margin: 0 0 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: left;
}

/* ==========================================================================
   NEW SERVICES GRID LAYOUT - MATCHING ABOUT US "WHY CHOOSE SEMSOTAI" DESIGN
   ========================================================================== */

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card-new {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 1s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.9s cubic-bezier(0.42, 0, 0.58, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    content-visibility: auto;
    contain-intrinsic-size: 350px 450px;
    will-change: transform, opacity;
    text-decoration: none;
    color: inherit;
}

.service-card-new.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-card-new:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-image-new {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-new:hover .service-image-new img {
    transform: scale(1.05);
}

.service-content-new {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-new h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
}

.service-card-new p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-content-new h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(33, 124, 118, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Service Link Styling */
.service-link {
    display: inline-block;
    color: rgba(33, 124, 118, 1);
    text-decoration: underline transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.service-card-new:hover .service-link {
    text-decoration-color: rgba(33, 124, 118, 1);
}

/* ==========================================================================
   INDUSTRY SHOWCASE CARDS - ALTERNATE LAYOUT (IF NEEDED)
   ========================================================================== */

.industry-showcase {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    margin-bottom: 3rem;
    background: #ffffff;
}

.industry-showcase.alt {
    flex-direction: row-reverse;
}

.industry-image {
    flex: 1 1 40%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

.industry-content {
    flex: 1 1 60%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.2rem;
}

.content-wrapper h2 i {
    color: rgba(33, 124, 118, 1);
}

.content-wrapper .intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.details-grid h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

.details-grid ul {
    list-style: none;
    padding-left: 0;
}

.details-grid ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.details-grid ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: rgba(33, 124, 118, 1);
    font-size: 0.8rem;
}

.result {
    background: rgba(33, 124, 118, 0.05);
    border-left: 4px solid rgba(33, 124, 118, 1);
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    border-radius: 6px;
}

/* ==========================================================================
   LEGACY INDUSTRIES GRID (ICON-BASED LAYOUT)
   ========================================================================== */

.industries {
    padding: 100px 0;
    background-color: #f9fafb;
}

.industries h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 4rem;
    color: #1f2937;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.industries h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: rgba(33, 124, 118, 1);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.industry-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.industry-card i {
    font-size: 3rem;
    color: rgba(33, 124, 118, 1);
    margin-bottom: 1rem;
}

.industry-card h3 {
    color: #1f2937;
    font-weight: 600;
}

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

/* Industries/Market page animation - immediate visibility */
.industries-hero .animate-fade-in-up,
.industries-intro-text .animate-fade-in-up,
.market-hero .animate-fade-in-up {
    transition: all 0.8s ease !important;
    transition-delay: 0s !important;
}

/* Industries page stagger animation with faster timing */
.industries-section .stagger-animation .animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

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

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

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

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

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

.industries-section .stagger-animation.animate .animate-item {
    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
   ========================================================================== */

/* Responsive Design for New Services Grid */
@media (max-width: 1024px) {
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .industry-showcase, 
    .industry-showcase.alt {
        flex-direction: column;
    }
    
    .industry-image {
        min-height: 250px;
    }
    
    .industry-content {
        padding: 2rem 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .industries-hero {
        height: 35vh;
        min-height: 300px;
        background-attachment: scroll;
        margin-top: 70px;
    }
    
    .industries-hero h1 {
        font-size: 2.2rem;
    }
    
    .industries-hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .industries-section {
        padding: 60px 0;
    }
    
    .industries-intro-text p {
        font-size: 1rem;
        padding: 0;
    }
    
    .industries-intro-text .certification-intro {
        font-size: 1rem;
    }
    
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-new h3 {
        font-size: 1.2rem;
    }
    
    .service-content-new {
        padding: 1.5rem 1rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .industries-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .industries-hero h1 {
        font-size: 1.75rem;
    }
    
    .industries-hero p {
        font-size: 1rem;
    }
    
    .industries-section {
        padding: 40px 0;
    }
    
    .industries-intro-text p {
        font-size: 1rem;
        padding: 0;
    }
    
    .industries-intro-text .certification-intro {
        font-size: 1rem;
    }
    
    .service-card-new h3 {
        font-size: 1.1rem;
    }
    
    .service-content-new {
        padding: 1.25rem 1rem;
    }
    
    .service-card-new p {
        font-size: 0.85rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-card {
        padding: 1.5rem 1rem;
    }
    
    .industry-card i {
        font-size: 2.5rem;
    }
}