/* ============================================================
   KELLY TECH SOLUTIONS — Modern Technology Business Theme
   Brand palette: Navy #0A1020 | Blue #1E8FFF | Cyan #00CFFF
   Font: Inter | Icons: Bootstrap Icons + Font Awesome 6
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES ────────────────────────── */
:root {
    --kt-navy: #0a1020;
    --kt-navy-2: #101b33;
    --kt-blue: #1e8fff;
    --kt-cyan: #00cfff;
    --kt-grad: linear-gradient(135deg, #1e8fff 0%, #00cfff 100%);
    --text-main: #1a202c;
    --text-muted: #64748a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bs-primary-rgb: 30, 143, 255;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 14px rgba(10, 16, 32, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 16, 32, 0.18);
    --transition: 0.3s ease;
}

/* ── BASE / RESET ───────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}
html, body { height: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
main { flex: 1 0 auto; }
footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
section { scroll-margin-top: 90px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
}
.text-gradient,
.brand-text {
    background: var(--kt-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@supports not (background-clip: text) {
    .brand-text, .text-gradient, .counter {
        background: none; color: var(--kt-blue);
        -webkit-text-fill-color: currentColor;
    }
}

/* Prevent overflow on flex/grid children */
.row > [class*="col-"],
.hero-text, .hero-media, .card, .card-body,
.testimonial-card, .contact-card, .feature-card { min-width: 0; }
body { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
main, .hero, .hero-dark, .cta, .promo-banner { overflow-x: clip; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar-kt {
    background: var(--kt-navy);
    padding: 0.55rem 0;
    transition: box-shadow var(--transition), background var(--transition);
    z-index: 1030;
}
.navbar-kt .navbar-brand { font-size: 1.25rem; letter-spacing: 0.5px; }
.navbar-kt img {
    object-fit: contain;
    box-shadow: 0 0 0 2px var(--kt-blue), 0 0 14px rgba(0, 207, 255, 0.55);
}
.navbar-kt .nav-link {
    color: rgba(255, 255, 255, 0.82);
    transition: color var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
}
.navbar-kt .nav-link:hover { color: var(--kt-cyan); }
.navbar-kt .nav-link.active {
    color: #fff; font-weight: 600;
}
.navbar-kt .nav-link.active::after {
    content: ""; position: absolute;
    left: 1rem; right: 1rem; bottom: 2px;
    height: 3px; border-radius: 3px;
    background: var(--kt-grad);
}
.navbar-kt.scrolled {
    box-shadow: var(--shadow-lg) !important;
    background: rgba(10, 16, 32, 0.96);
    backdrop-filter: blur(8px);
}
.nav-phone {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-right: 0.5rem;
    transition: all var(--transition);
}
.nav-phone:hover { color: var(--kt-cyan); background: rgba(255, 255, 255, 0.1); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
    padding: 88px 0 72px;
    position: relative;
    background: var(--bg-white);
}
.hero .row { --bs-gutter-x: 3rem; }
.hero-text { max-width: 620px; }
.hero-text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.08;
}
.hero-text .typed-word { color: var(--kt-blue); }
.hero-text .typed-caret {
    display: inline-block;
    width: 3px; height: 1em;
    background: var(--kt-cyan);
    margin-left: 3px;
    vertical-align: -0.12em;
    animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-text .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-media { position: relative; }
.image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(10, 16, 32, 0.08);
}
.image-wrapper img { width: 100%; display: block; }
.hero-badge {
    position: absolute;
    opacity: 0.1;
    font-size: 1.8rem;
    pointer-events: none;
}
.hero-badge.top-right { top: 1rem; right: 1rem; }
.hero-badge.bottom-left { bottom: 1rem; left: 1rem; }

/* Dark hero sections */
.hero-dark {
    background:
        radial-gradient(700px 320px at 80% 0%, rgba(0, 207, 255, 0.18), transparent 70%),
        linear-gradient(135deg, var(--kt-navy) 0%, var(--kt-navy-2) 60%, #16325c 100%);
    color: #fff;
    padding: 90px 0;
    position: relative;
}
.hero-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(30, 143, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 207, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-dark .container,
.hero-dark .reveal { position: relative; z-index: 2; }
.hero-dark .display-3 { font-size: 2.75rem; font-weight: 800; }
.hero-dark .lead { color: rgba(255, 255, 255, 0.82); }

/* ── BADGES ──────────────────────────────────────────── */
.badge-kt {
    background: var(--kt-grad);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-kt {
    background: var(--kt-grad);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-kt:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 2rem rgba(30, 143, 255, 0.35);
}
.btn-kt.btn-lg { font-size: 1.1rem; padding: 0.75rem 2rem; }

.btn-outline-kt {
    border: 2px solid var(--kt-grad);
    color: var(--kt-blue);
    background: transparent;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all var(--transition);
}
.btn-outline-kt:hover {
    background: var(--kt-grad);
    color: #fff;
    transform: translateY(-2px);
}

.buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ── CARDS ───────────────────────────────────────────── */
.card {
    border-radius: var(--radius);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.8rem 2rem rgba(10, 16, 32, 0.18) !important;
}
.card-img-top {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center center;
    cursor: zoom-in;
    border-bottom: 1px solid rgba(10, 16, 32, 0.04);
    transition: transform 0.5s ease;
}
.card:hover .card-img-top { transform: none; }

.img-focus-top,
.img-focus-mid,
.img-focus-bottom { object-position: center center; }

.img-zoom {
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.img-preview-modal {
    max-width: 90vw;
    max-height: 80vh;
    width: 100%;
    height: auto;
}

/* Icon circles on service cards */
.icon-circle {
    width: 80px; height: 80px;
    background: var(--kt-grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 143, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 2rem;
}

.icon-box {
    transition: 0.4s;
    cursor: pointer;
}
.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(10, 16, 32, 0.2);
}
.icon-box i { color: var(--kt-blue); }

.list-group-item {
    border: none;
    padding: 0.6rem 0;
}
.list-group-item i { color: var(--kt-blue); }

/* ── FEATURE CARDS ──────────────────────────────────── */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    height: 100%;
    transition: all var(--transition);
    border: 1px solid rgba(10, 16, 32, 0.06);
}
.feature-card:hover {
    background-color: #eef6ff;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ── COUNTERS ────────────────────────────────────────── */
.counter {
    font-size: 45px;
    font-weight: 700;
    background: var(--kt-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── SECTION BACKGROUNDS ────────────────────────────── */
.section-light { background: var(--bg-white); padding: 60px 0; }
.section-alt { background: var(--bg-light); padding: 60px 0; }

/* ── PORTFOLIO / FEATURED PROJECTS ──────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.portfolio-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
    height: 100%;
}
.portfolio-card:hover { transform: translateY(-8px); }
.portfolio-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 32, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
    text-align: center;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--kt-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
    height: 100%;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-rating { color: #ffd700; font-size: 1rem; }
.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin: 1rem 0;
    position: relative;
    padding: 1rem 0;
}
.testimonial-text::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--kt-blue);
    content: "\f10d";
    position: absolute;
    top: -10px; left: -15px;
    opacity: 0.25;
}
.testimonial-text::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--kt-blue);
    content: "\f10e";
    position: absolute;
    bottom: -10px; right: -15px;
    opacity: 0.25;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(10, 16, 32, 0.08);
}
.testimonial-author-info h6 { margin: 0; font-weight: 600; }
.testimonial-author-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── PROMOTIONAL BANNERS ────────────────────────────── */
.promo-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem 0;
}
.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 32, 0.65);
    display: flex;
    align-items: center;
    padding: 3rem;
}
.promo-content {
    max-width: 600px;
    color: #fff;
}
.promo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.promo-content .lead {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}
.promo-content .btn-kt {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

/* ── CTA BAND ─────────────────────────────────────────── */
.cta {
    background:
        radial-gradient(600px 280px at 15% 0%, rgba(0, 207, 255, 0.25), transparent 70%),
        linear-gradient(135deg, #0f7ae6 0%, #00cfff 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.cta h2 { font-size: 2rem; font-weight: 700; }
.cta .btn-dark {
    background: var(--kt-navy);
    border: none;
}
.cta .btn-dark:hover { background: #16233f; }
.cta .btn-light { background: var(--kt-navy); border: none; color: #fff !important; }
.cta .btn-light:hover { background: #16233f; }

/* ── CONTACT / FORMS ────────────────────────────────── */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.contact-card i { font-size: 2.5rem; color: var(--kt-blue); }
.contact-card .whatsapp-color { color: #25d366; }

.form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--kt-blue);
    box-shadow: 0 0 0 0.25rem rgba(30, 143, 255, 0.25);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
    background: var(--kt-navy);
    color: #fff;
    padding: 60px 0 30px;
}
footer .brand-text,
footer .text-gradient {
    background: var(--kt-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
footer a:hover { color: var(--kt-cyan) !important; }
footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    transition: all var(--transition);
}
footer .social-link:hover {
    background: var(--kt-grad);
    transform: translateY(-2px);
    color: #fff;
}
footer .opacity-75 { opacity: 0.75; }
footer .opacity-50 { opacity: 0.5; }

/* ── FLOATING ELEMENTS ────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--kt-grad);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 1050;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#backToTop:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 22px rgba(30, 143, 255, 0.45);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 104, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    z-index: 1050;
    transition: all var(--transition);
}
.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 211, 104, 0.45);
}

/* ── SCROLL REVEAL ANIMATIONS ─────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
}
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
html.js .reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .float-card, .typed-caret,
    .card, .feature-card, .portfolio-card,
    .testimonial-card, .contact-card,
    .whatsapp-float, #backToTop {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── RESPONSIVE LAYER ─────────────────────────────────── */
/* Wide monitors (>= 1400px) */
@media (min-width: 1400px) {
    .hero { padding: 88px 0 72px; }
    .hero-dark { padding: 104px 0; }
}

/* Laptops / small desktops (<= 1200px) */
@media (max-width: 1200px) {
    .hero { padding: 64px 0 52px; }
    .hero-dark { padding: 78px 0; }
    .icon-circle { width: 72px; height: 72px; }
}

/* Tablets and collapsed navbar (<= 992px) */
@media (max-width: 992px) {
    .hero {
        padding: 56px 0 48px;
        text-align: center;
    }
    .hero-text { text-align: center !important; margin-bottom: 40px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .buttons { justify-content: center; }
    .hero-dark { padding: 60px 0; }
    .counter { font-size: 36px; }
    .image-wrapper { max-width: 500px; margin: 0 auto; }
    .navbar-kt .navbar-collapse {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .navbar-kt .navbar-nav .nav-link { padding: 0.6rem 0.25rem; }
    .navbar-kt .nav-link.active::after {
        left: 0.25rem; right: auto;
        width: 34px; bottom: 6px;
    }
    .navbar-kt .navbar-collapse .btn-kt { display: block; width: 100%; }
    .nav-phone { display: none; }
}

/* Small tablets / large phones (<= 768px) */
@media (max-width: 768px) {
    .hero { padding: 48px 0 44px; }
    .hero-dark { padding: 56px 0; }
    .card-img-top { height: 240px; }
    .hero-text h1 { font-size: 2.25rem; }
    .hero-text .lead { font-size: 1rem; }
    .float-card { font-size: 0.8rem; padding: 0.55rem 0.85rem; }
    .float-card i { font-size: 1.1rem; }
    .counter { font-size: 32px; }
    .icon-circle { width: 66px; height: 66px; }
    .list-group-item { padding: 0.5rem 0.25rem; font-size: 0.95rem; }
    .hero-dark h1.display-3 { font-size: 2.25rem; }
    .promo-overlay { padding: 2rem; }
    .promo-content h2 { font-size: 1.6rem; }
}

/* Small phones (<= 576px) */
@media (max-width: 576px) {
    .hero { padding: 40px 0 36px; }
    .hero-text h1 { font-size: calc(1.35rem + 2.7vw); }
    .hero-text p,
    .hero-text .lead,
    .hero-dark .lead { font-size: 1rem; }
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .buttons .btn { width: 100%; }
    .hero-badge { display: none; }
    .card-img-top { height: 190px; }
    .float-card { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
    .counter { font-size: 28px; }
    .icon-circle { width: 60px; height: 60px; }
    .icon-circle i { font-size: 1.4rem !important; }
    .badge-kt { font-size: 0.72rem; }
    #backToTop {
        left: 16px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        width: 42px; height: 42px;
    }
}

/* Very small phones (<= 400px) */
@media (max-width: 400px) {
    .navbar-kt .navbar-brand { font-size: 1.05rem; letter-spacing: 0; }
    .navbar-kt .navbar-brand img { width: 40px; height: 40px; }
    .counter { font-size: 24px; }
    .badge-kt { font-size: 0.65rem; }
    .btn-lg { font-size: 1rem; padding: 0.6rem 1.25rem; }
}

/* Touch devices: hover-only effects can stick */
@media (hover: none) {
    .card:hover,
    .icon-box:hover,
    .portfolio-card:hover,
    .testimonial-card:hover,
    .contact-card:hover {
        transform: none;
    }
    .card:hover .card-img-top { transform: none; }
    .portfolio-card:hover img { transform: none; }
    .portfolio-card:hover .portfolio-overlay { opacity: 1; }
}






