/* Homepage specific styles */

.hero-section {
    background: linear-gradient(135deg, var(--btn-primary) 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out;
    opacity: 0.95;
}

.text-highlight {
    background: linear-gradient(120deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffd700; /* Fallback for browsers that don't support background-clip */
    display: inline-block;
}

.hero-badge {
    animation: fadeInDown 0.6s ease-out;
}

.hero-image {
    animation: fadeIn 1.2s ease-out;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02) rotate(1deg);
}

.pulse-btn {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-btn:hover {
    animation: none;
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.welcome-back-message {
    animation: fadeInUp 0.8s ease-out;
}

.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .stats-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stat-card:hover {
    background: var(--bg-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.stat-icon i {
    font-size: 2.5rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--btn-primary);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
    color: #667eea;
}

.stat-label {
    font-weight: 600;
    color: #495057;
    margin-top: 0.5rem;
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

/* Categories container - horizontal scrolling layout */
.categories-container {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    max-width: 100%;
}

.category-item {
    flex: 0 0 auto;
    width: calc((100% - 90px) / 7);
    min-width: 140px;
    max-width: 180px;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    height: 100%;
}

/* Large screens - single row */
@media (min-width: 1400px) {
    .category-item {
        width: 160px;
    }
}

/* Medium-large screens */
@media (min-width: 992px) and (max-width: 1399px) {
    .category-item {
        width: calc((100% - 75px) / 7);
        min-width: 130px;
    }
}

/* Shared hover effect for cards */
.card-hover:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

/* Category icons styling */
.category-card .bi {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .bi {
    transform: scale(1.1);
}

/* Recent work card images */
.card-img-top.work-image {
    height: 200px;
    object-fit: cover;
}

/* View All Categories card special styling */
.view-all-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px dashed var(--btn-primary);
}

.view-all-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    border-style: solid;
}

.view-all-card .bi {
    color: var(--btn-primary);
}

.view-all-card:hover .bi {
    animation: rotateIcon 0.6s ease-in-out;
}

@keyframes rotateIcon {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
}

[data-theme="dark"] .view-all-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

[data-theme="dark"] .view-all-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

/* Inspiration section */
.inspiration-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.inspiration-section blockquote {
    margin: 0;
}

.inspiration-section .blockquote-footer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px dashed var(--btn-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="dark"] .cta-banner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-banner:hover {
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .cta-banner:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 991px) {
    .category-item {
        width: calc((100% - 45px) / 4);
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats-section {
        margin: 1rem 0;
        padding: 2rem 1rem;
    }

    .cta-banner {
        padding: 2rem 1.5rem !important;
    }

    .inspiration-section {
        padding: 2rem 1rem !important;
    }

    .categories-scroll {
        justify-content: center;
        gap: 12px;
    }

    .category-item {
        width: calc((100% - 36px) / 4);
        min-width: 110px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .pulse-btn {
        animation: none;
    }

    .categories-scroll {
        gap: 10px;
    }

    .category-item {
        width: calc((100% - 20px) / 3);
        min-width: 100px;
    }

    .category-card .card-body {
        padding: 1rem 0.5rem;
    }

    .category-card h6 {
        font-size: 0.8rem;
    }

    .category-card .bi {
        font-size: 2rem !important;
    }
}