/*
=====================================================
KP Portfolio Theme - Home Page Styles
=====================================================
Version: 2.0
Description: Premium styles for Home highlighting all sections
*/

/* ==================== HERO SECTION ==================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    margin-top: -80px;
    /* Offset header */
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 960px);
    margin: 0 auto;
    padding-inline: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
    max-width: min(100%, 34rem);
    margin: 0 auto 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.hero-title {
    line-height: 1.2;
}

.hero-name {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.hero-role-label {
    display: inline-block;
    max-width: 100%;
    margin-top: 15px;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #38bdf8;
    font-size: clamp(0.78rem, 1.5vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    line-height: 1.4;
    word-break: break-word;
}

.hero .lead {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* ==================== SECTIONS GENERAL ==================== */

.home-section {
    padding: 80px 0;
}

.section-bg-light {
    background: transparent;
}

/* ==================== ABOUT PREVIEW ==================== */

.about-image-wrapper {
    position: relative;
    z-index: 1;
    padding: 12px 26px 26px 12px;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.02);
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.decorative-circle-1 {
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.decorative-circle-2 {
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: linear-gradient(to right, #f093fb, #f5576c);
}

.experience-badge-about {
    position: absolute;
    bottom: 40px;
    right: -10px;
    background: var(--light-card);
    padding: 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    min-width: 150px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.exp-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.exp-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.about-heading {
    font-weight: 700;
    color: var(--text-primary);
}

.about-position {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-bio {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info-cards {
    max-width: 540px;
}

.info-card {
    background: var(--light-surface);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    background: var(--light-card);
}

.info-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
}

.info-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.info-value:hover {
    color: var(--primary-color);
}

.home-about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Stats Cards */
.stat-card-home {
    background: var(--light-card);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.stat-card-home:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-card-home i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card-home h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card-home h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 2.2vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.service-card-home h3 a {
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: block;
    text-decoration: none;
}

.stat-card-home p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ==================== SERVICES PREVIEW ==================== */

.service-card-home {
    background: var(--light-card);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.service-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transition: height 0.3s ease;
    z-index: -1;
}

.service-card-home:hover::before {
    height: 100%;
}

.service-card-home:hover h3,
.service-card-home:hover h3 a,
.service-card-home:hover p,
.service-card-home:hover i {
    color: white !important;
}

.service-card-home:hover a:not(.btn),
.service-card-home:hover .badge,
.service-card-home:hover .text-primary,
.service-card-home:hover .service-category-tag span,
.service-card-home:hover .small,
.service-card-home:hover .fw-bold {
    color: white !important;
}

.service-card-home:hover .badge,
.service-card-home:hover .service-category-tag span {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.service-card-home:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--light-surface);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card-home p {
    width: 100%;
    margin-bottom: 1.25rem;
}

.service-card-home > a:last-child {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Service Filtering Animation */
.service-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.service-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* ==================== CTA SECTION ==================== */

.home-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.home-cta .cta-title {
    color: white;
    font-weight: 700;
}

.home-cta .cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.home-cta .cta-btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.home-cta .cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--primary-color);
}

.home-cta .cta-btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.home-cta .cta-btn-secondary:hover {
    transform: translateY(-3px);
}

.home-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== TESTIMONIALS SECTION ==================== */

.testimonial-card-home {
    background: var(--light-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-icon {
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.2);
    /* Light primary */
    margin-bottom: 1.5rem;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--light-border);
    padding-top: 1.5rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.author-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-info h5 {
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== DARK MODE SUPPORT ==================== */
.dark-mode .stat-card-home,
.dark-mode .service-card-home,
.dark-mode .testimonial-card-home,
.dark-mode .service-icon {
    background: var(--dark-card) !important;
}

.dark-mode .stat-card-home h3,
.dark-mode .service-card-home h3,
.dark-mode .testimonial-author h5,
.dark-mode .service-card-home h3 a {
    color: var(--text-light) !important;
}

.dark-mode .stat-card-home p,
.dark-mode .service-card-home p,
.dark-mode .testimonial-content,
.dark-mode #portfolio .lead.text-muted,
.dark-mode .home-section .lead.text-muted {
    color: var(--text-muted) !important;
}

.dark-mode .home-section h2.display-5 {
    color: var(--text-light) !important;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .home-section {
        padding: 60px 0;
    }

    .experience-badge-about {
        right: 10px;
        bottom: 20px;
        min-width: 130px;
        padding: 1.2rem;
    }

    .exp-number {
        font-size: 2.2rem;
    }

    .home-about-actions .btn {
        width: 100%;
    }

    .service-card-home h3 {
        font-size: clamp(1.65rem, 4.6vw, 2.3rem);
    }
}

@media (max-width: 576px) {
    .about-image-wrapper {
        padding: 0 0 24px;
    }

    .decorative-circle-1,
    .decorative-circle-2 {
        display: none;
    }

    .experience-badge-about {
        position: static;
        margin: 1rem auto 0;
    }

    .service-card-home {
        padding: 2rem 1.5rem;
    }

    .service-card-home h3 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }
}
