/* Hero Section */
.category-hero {
    position: relative;
    background: url('../images/peacock (2).jpg') center/cover no-repeat;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    animation: fadeIn 1s ease-out;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
}

.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-overlay p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Model Profile Book */
.model-profile-book {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.model-profile-book h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease-out;
}

.intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.5s ease-out;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.model-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.model-card:hover,
.model-card:focus {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 20px rgba(245,166,35,0.4);
}

.model-card img {
    width: 100%;
    height: 400px; /* Portrait-like height */
    object-fit: cover;
    object-position: 50% 0; /* Focus on top for model faces */
    transition: transform 0.3s ease; /* For zoom effect */
}

.model-card:hover img,
.model-card:focus img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.model-info {
    padding: 2rem 1.5rem; /* Extra vertical space */
}

.model-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.5rem 0;
}

.model-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Portfolio Link */
.portfolio-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: #F5A623;
    color: #111;
    box-shadow: 0 8px 20px rgba(245,166,35,0.4);
    transform: translateY(-2px);
}

.portfolio-link:focus {
    outline: 3px solid #F5A623;
    outline-offset: 3px;
}

.portfolio-link.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
    .category-hero {
        height: 50vh;
        min-height: 300px;
    }

    .hero-overlay h1 {
        font-size: 2.5rem;
    }

    .hero-overlay p {
        font-size: 1.1rem;
    }

    .model-profile-book {
        padding: 2rem 1rem;
    }

    .model-profile-book h2 {
        font-size: 2rem;
    }

    .model-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .model-card img {
        height: 350px; /* Adjusted for mobile */
    }

    .model-info {
        padding: 1.5rem;
    }

    .intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 2rem;
    }

    .hero-overlay {
        padding: 1rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .model-profile-book h2 {
        font-size: 1.8rem;
    }

    .model-card img {
        height: 300px; /* Further adjusted for smaller screens */
    }

    .portfolio-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Reduce animations for low-end devices */
@media (prefers-reduced-motion: reduce) {
    .category-hero,
    .model-profile-book h2,
    .intro,
    .model-card,
    .portfolio-link.pulse {
        animation: none;
    }

    .model-card:hover img,
    .model-card:focus img {
        transform: none;
    }
}