﻿/*====================================================
        KINGKROWN DIGITAL - HOME PAGE CSS
======================================================*/

/*================ HERO SECTION =================*/

.hero {
    width: 100%;
    padding: 35px 0 80px;
    background: #ffffff;
}
.hero-left {
    margin-top: -25px;
}

.hero-right {
    margin-top: -25px;
}

    .hero .container {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 70px;
    }

/*================ LEFT CONTENT =================*/

.hero-left {
    animation: fadeLeft 1s ease;
}

.hero-tag {
    display: inline-block;
    background: #edf4ff;
    color: #0d47a1;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero-left h1 {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800;
    color: #202020;
    margin-bottom: 30px;
}

    .hero-left h1 span {
        color: #0d47a1;
    }

.hero-left p {
    font-size: 22px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 45px;
}

/*================ HERO BUTTONS =================*/

.hero-buttons {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 55px;
}

.hero-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 42px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: .35s;
}

    .hero-btn.primary {
        background: #ff9800;
        color: #fff;
        box-shadow: 0 12px 28px rgba(255,152,0,.35);
    }

        .hero-btn.primary:hover {
            background: #f57c00;
            transform: translateY(-5px);
        }

    .hero-btn.secondary {
        background: #0d47a1;
        color: #fff;
    }

        .hero-btn.secondary:hover {
            background: #1565c0;
            transform: translateY(-5px);
        }

/*================ HERO STATS =================*/

.hero-stats {
    display: flex;
    gap: 55px;
    flex-wrap: wrap;
}

.hero-stat h2 {
    color: #0d47a1;
    font-size: 54px;
    font-weight: 800;
}

.hero-stat p {
    color: #666;
    font-size: 18px;
    margin-top: 5px;
}

/*================ HERO RIGHT =================*/

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeRight 1s ease;
}

/*================ SLIDER =================*/

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 430px;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 55px rgba(0,0,0,.18);
}

/*================ SLIDES =================*/

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .8s ease;
}

    .slide.active {
        opacity: 1;
        z-index: 5;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/*================ PREVIOUS & NEXT =================*/

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
    z-index: 20;
}

.prev {
    left: 18px;
}

.next {
    right: 18px;
}

    .prev:hover,
    .next:hover {
        background: #ff9800;
    }

/*================ DOTS =================*/

.slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: .3s;
}

    .dot.active {
        background: #ff9800;
        transform: scale(1.2);
    }

/*================ ANIMATION =================*/

@keyframes fadeLeft {

    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {

    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/*====================================================
                FEATURES SECTION
====================================================*/

.features {
    padding: 100px 0;
    background: #f8faff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.feature-card {
    background: #fff;
    padding: 45px 35px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0,0,0,.15);
    }

.feature-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.feature-card h3 {
    font-size: 28px;
    color: #0d47a1;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

/*====================================================
                ABOUT PREVIEW
====================================================*/

.about-preview {
    padding: 110px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

.about-content h4 {
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 50px;
    color: #0d47a1;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-content p {
    color: #666;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.about-list {
    margin: 35px 0;
}

    .about-list li {
        margin-bottom: 18px;
        font-size: 17px;
        color: #444;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .about-list i {
        color: #ff9800;
        font-size: 20px;
    }

/*====================================================
                SERVICES PREVIEW
====================================================*/

.services-preview {
    padding: 110px 0;
    background: #f8faff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.service-card {
    background: #fff;
    padding: 45px 30px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(0,0,0,.15);
    }

.service-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    margin-bottom: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 42px;
}

.service-card h3 {
    font-size: 28px;
    color: #0d47a1;
    margin-bottom: 18px;
}

.service-card p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-card a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

    .service-card a:hover {
        color: #ff9800;
        letter-spacing: .5px;
    }
/*====================================================
                HOME STATISTICS
====================================================*/

.home-stats {
    padding: 100px 0;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 35px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    transition: .35s;
}

    .stat-box:hover {
        transform: translateY(-8px);
        background: rgba(255,255,255,.15);
    }

    .stat-box h2 {
        font-size: 60px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .stat-box p {
        font-size: 18px;
        color: #e8f2ff;
    }

/*====================================================
                TESTIMONIALS
====================================================*/

.testimonials {
    padding: 110px 0;
    background: #ffffff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;
}

    .testimonial-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(0,0,0,.15);
    }

    .testimonial-card::before {
        content: "★★★★★";
        display: block;
        color: #ff9800;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .testimonial-card p {
        color: #666;
        font-size: 17px;
        line-height: 1.9;
        margin-bottom: 25px;
        font-style: italic;
    }

    .testimonial-card h4 {
        color: #0d47a1;
        font-size: 22px;
    }

/*====================================================
                CLIENTS
====================================================*/

.clients {
    padding: 100px 0;
    background: #f8faff;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 25px;
}

.client-box {
    background: #fff;
    height: 120px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: #0d47a1;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .35s;
}

    .client-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 35px rgba(0,0,0,.15);
    }

/*====================================================
                WHY CHOOSE US
====================================================*/

.why-home {
    padding: 110px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.why-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: .35s;
}

    .why-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(0,0,0,.15);
    }

.why-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 40px;
}

.why-card h3 {
    color: #0d47a1;
    font-size: 26px;
    margin-bottom: 18px;
}

.why-card p {
    color: #666;
    line-height: 1.8;
    font-size: 17px;
}

/*====================================================
                CALL TO ACTION
====================================================*/

.home-cta {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    color: #fff;
}

    .home-cta h2 {
        font-size: 56px;
        margin-bottom: 20px;
        font-weight: 800;
    }

    .home-cta p {
        max-width: 850px;
        margin: 0 auto 35px;
        font-size: 20px;
        line-height: 1.9;
        color: #e6f1ff;
    }

    .home-cta .hero-btn {
        font-size: 18px;
        padding: 18px 42px;
    }
/*====================================================
                RESPONSIVE DESIGN
====================================================*/

/*=============== LARGE TABLETS ===============*/

@media (max-width:1200px) {

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-slider {
        max-width: 700px;
        margin: auto;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .client-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/*=============== TABLETS ===============*/

@media (max-width:992px) {

    .hero {
        padding: 70px 0;
    }

    .hero-left h1 {
        font-size: 54px;
    }

    .hero-left p {
        font-size: 18px;
    }

    .hero-slider {
        height: 400px;
    }

    .hero-stats {
        gap: 30px;
    }

    .features-grid,
    .services-grid,
    .client-grid,
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/*=============== MOBILE ===============*/

@media (max-width:768px) {

    .hero {
        padding: 50px 0;
    }

    .hero-left h1 {
        font-size: 40px;
    }

    .hero-left p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn,
    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 18px;
    }

    .hero-slider {
        height: 300px;
    }

    .prev,
    .next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .features-grid,
    .services-grid,
    .stats-grid,
    .client-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .service-card,
    .why-card,
    .testimonial-card {
        padding: 30px 20px;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .home-cta {
        padding: 80px 20px;
    }

        .home-cta h2 {
            font-size: 36px;
        }
}

/*=============== SMALL MOBILE ===============*/

@media (max-width:480px) {

    .hero-left h1 {
        font-size: 32px;
    }

    .hero-tag {
        font-size: 13px;
        padding: 8px 18px;
    }

    .hero-slider {
        height: 240px;
        border-radius: 18px;
    }

    .prev,
    .next {
        display: none;
    }

    .slider-dots {
        bottom: 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .hero-stat h2 {
        font-size: 42px;
    }

    .home-cta h2 {
        font-size: 28px;
    }

    .home-cta p {
        font-size: 16px;
    }
}

/*====================================================
                SMOOTH HOVER EFFECTS
====================================================*/

img {
    transition: .4s ease;
}

    img:hover {
        transform: scale(1.02);
    }

.card,
.feature-card,
.service-card,
.why-card,
.client-box,
.testimonial-card {
    transition: .35s ease;
}

/*====================================================
                FADE ANIMATION
====================================================*/

.fade-up {
    animation: fadeUp .8s ease;
}

@keyframes fadeUp {

    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*====================================================
                END OF FILE
====================================================*/