/* Website Teasers Section - Updated for clickable cards */
#website-teasers {
    padding: 80px 0;
    background: var(--light-silver);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

#website-teasers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/construction.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
}

#website-teasers > * {
    position: relative;
    z-index: 1;
}

#website-teasers .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#website-teasers .section-header {
    text-align: center;
    margin-bottom: 50px;
}

#website-teasers .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

#website-teasers .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-silver));
    border-radius: 2px;
}

#website-teasers .section-header p {
    font-size: 1.2rem;
    color: var(--text-silver);
    max-width: 700px;
    margin: 25px auto 0;
}

/* Teasers Grid */
.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Teaser Card Links - Making entire card clickable */
.teaser-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.teaser-card-link:hover {
    transform: translateY(-10px);
}

.teaser-card-link:focus {
    outline: none;
}

.teaser-card-link:focus .teaser-card {
    box-shadow: 0 0 0 3px var(--accent-blue);
}

/* Teaser Cards */
.teaser-card {
    background: var(--blurred-grey);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-silver);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.teaser-card-link:hover .teaser-card {
    border-color: var(--accent-blue);
    box-shadow: 0 15px 30px rgba(80, 80, 80, 0.3);
}

.teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-silver));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.teaser-card-link:hover .teaser-card::before {
    transform: scaleX(1);
}

/* Teaser Icon */
.teaser-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #3a7bd5, #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(0, 150, 255, 0.6);
    backdrop-filter: blur(10px);
}

.teaser-card-link:hover .teaser-icon {
    transform: scale(1.1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(0, 150, 255, 0.6);
}

/* Teaser Card Content */
.teaser-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
    transition: color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.teaser-card-link:hover .teaser-card h3 {
    color: var(--accent-blue);
}

.teaser-card p {
    color: var(--text-silver);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Teaser Highlights */
.teaser-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.teaser-highlights span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-silver);
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.teaser-highlights i {
    color: var(--accent-blue);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Teaser Link Text (replaces the button) */
.teaser-link-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2c47758e, #55a1e9d5);
    color: #fcfcfc;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(47, 148, 206, 0.3);
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.teaser-card-link:hover .teaser-link-text {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teaser-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Stagger the animations */
.teaser-card:nth-child(1) { animation-delay: 0.1s; }
.teaser-card:nth-child(2) { animation-delay: 0.2s; }
.teaser-card:nth-child(3) { animation-delay: 0.3s; }
.teaser-card:nth-child(4) { animation-delay: 0.4s; }
.teaser-card:nth-child(5) { animation-delay: 0.5s; }
/* Mobile view settings for teaser links - screens up to 480px */
@media (max-width: 480px) {
    #website-teasers {
        padding: 40px 0;
    }
    
    #website-teasers .container {
        padding: 0 15px;
    }
    
    #website-teasers .section-header {
        margin-bottom: 30px;
    }
    
    #website-teasers .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    #website-teasers .section-header h2::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    #website-teasers .section-header p {
        font-size: 0.95rem;
        margin-top: 15px;
    }
    
    .teasers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .teaser-card {
        padding: 20px;
        border-radius: 8px;
    }
    
    .teaser-card::before {
        height: 3px;
    }
    
    .teaser-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }
    
    .teaser-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .teaser-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .teaser-highlights {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .teaser-highlights span {
        font-size: 0.85rem;
    }
    
    .teaser-highlights i {
        font-size: 0.7rem;
    }
    
    /* Updated: Shorter teaser link width */
    .teaser-link-text {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 4px;
        width: auto; /* Changed from 100% */
        max-width: 180px; /* Added max-width constraint */
        min-width: 120px; /* Added minimum width */
        box-sizing: border-box;
        margin: 0 auto; /* Center the button */
        display: inline-block; /* Changed from flex to inline-block */
    }
    
    /* Adjust animation delays for mobile */
    .teaser-card:nth-child(1) { animation-delay: 0.05s; }
    .teaser-card:nth-child(2) { animation-delay: 0.1s; }
    .teaser-card:nth-child(3) { animation-delay: 0.15s; }
    .teaser-card:nth-child(4) { animation-delay: 0.2s; }
    .teaser-card:nth-child(5) { animation-delay: 0.25s; }
    
    /* Make cards more touch-friendly */
    .teaser-card-link {
        min-height: auto;
    }
    
    /* Reduce shadow effects for better performance */
    .teaser-card {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    
    .teaser-card-link:hover .teaser-card {
        box-shadow: 0 8px 20px rgba(80, 80, 80, 0.25);
    }
    
    .teaser-icon {
        box-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.2),
            0 0 10px rgba(0, 150, 255, 0.5);
    }
    
    .teaser-card-link:hover .teaser-icon {
        box-shadow: 
            0 5px 15px rgba(0, 0, 0, 0.2),
            inset 0 1px 2px rgba(255, 255, 255, 0.2),
            0 0 10px rgba(0, 150, 255, 0.5);
    }
}

/* Extra small mobile adjustments - screens up to 360px */
@media (max-width: 360px) {
    #website-teasers .section-header h2 {
        font-size: 1.6rem;
    }
    
    #website-teasers .section-header p {
        font-size: 0.9rem;
    }
    
    .teaser-card {
        padding: 15px;
    }
    
    .teaser-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .teaser-card h3 {
        font-size: 1.1rem;
    }
    
    .teaser-card p {
        font-size: 0.85rem;
    }
    
    /* Further reduced width for very small screens */
    .teaser-link-text {
        padding: 8px 16px;
        font-size: 0.8rem;
        max-width: 160px; /* Reduced max-width */
        min-width: 100px; /* Reduced min-width */
    }
}