/* ============================
Logixpro — Unified styles.css
Drop-in for all pages you provided
============================ */

/* -------- Color system & vars -------- */
:root{
    --primary: #2f76e3;     /* primary blue */
    --secondary: #053e9a;   /* deep navy */
    --accent: #e68642;      /* bright orange */
    --muted: #6b7280;       /* muted gray */
    --bg: #fbfbfd;          /* page background */
    --surface: #ffffff;     /* cards */
    --text: #0b1730;        /* main text */
    --light: #ffffff;       /* white */
    --header-h: 68px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(11,11,20,0.06);
    --text-white: #ffffff;
}

/* -------- Reset & base -------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,body {
    height: 100%
}
body {
    font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    padding-top: calc(var(--header-h) + 0px);
}

/* -------- Header / Navbar (fixed, dark) -------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200
}

.navbar {
    height: var(--header-h);
    display :flex;
    align-items: center;
    background: var(--secondary);
    color: var(--light);
    box-shadow: 0 6px 22px rgba(2,6,23,0.18);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {color: var(--accent);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.2px
}

.nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
    list-style: none;
    margin: 0
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    padding: 24px 24px;
    font-weight: 600;
    transition: all .18s
}

.nav-links a:hover,.nav-links a.active {
    background: rgba(255,255,255,0.06);
    color: var(--light);
    transform: none
}

/* -------- Buttons (consistent) -------- */
.btn {
    display: inline-block;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    transition: all .22s
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 10px 24px rgba(31, 111, 235, 0.12)
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(255, 106, 0, 0.12)
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(11, 17, 40, 0.06)
}

.btn-secondary:hover {
    background: rgba(11, 17, 40, 0.04)
}

/* -------- Hero -------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 12px;
    background-image: linear-gradient(120deg, rgba(6, 12, 30, 0.45), rgba(6, 12, 30, 0.20)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light);
}

.hero-content {
    width: 700px;
    text-align: left;
    margin: 0;
    position: absolute;
    left: 42px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.02;
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 6px 30px rgba(2, 6, 23, 0.45)
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px
}

/* small hero for inner pages */
.small-hero {
    min-height: 36vh;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.04), rgba(250, 250, 250, 0.01));
    color: var(--text);
    border-radius: 10px;
    padding: 36px 12px
}

/* -------- Generic section styles -------- */
section {
    padding: 64px 0
}

.section-title {
    text-align: center;
    margin-bottom: 28px
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 800;
    display: inline-block;
    padding-bottom: 8px
}

.section-title h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px
}

/* -------- GRID utility used by About/Why/Contact etc --------
Important: .grid must default to a two-column layout on larger screens
and single column on small screens (so About and Why-us appear side-by-side).
*/
.grid {
    display: block
}

@media(min-width:760px) {
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: center
    }
}

/* Also accept .about-grid if present in some HTML variants */
.about-grid {
    display: block
}

.about-image {
    width: 100%;
    border-radius: 10px
}

@media(min-width:760px) {
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: center
    }
}

/* -------- Services: we use flex row so cards line up horizontally -------- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center
}

.service-card {
    flex: 1 1 300px;
    max-width: 420px;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 8px
}

.service-card h3 {
    font-size: 1.05rem;
    margin: 10px 0 8px
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(11, 11, 20, 0.08)
}

/* -------- Portfolio: grid of images -------- */
.portfolio-grid {
    display: grid;
    gap: 20px
}

@media(min-width:520px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow)
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .9, .2, 1);
    filter: contrast(1.06) saturate(1.03)
}

.portfolio-item:hover img {
    transform: scale(1.06)
}

.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(180deg, rgba(6, 12, 30, 0.0), rgba(6, 12, 30, 0.62));
    opacity: 0;
    transition: opacity .28s
}

.portfolio-item:hover .overlay {
    opacity: 1
}

/* overlay text */
.portfolio-item .overlay h3 {
    margin-bottom: 6px;
    font-size: 1.05rem
}

.portfolio-item .overlay p {
    font-size: 0.95rem;
    opacity: 0.92
}

/* -------- Testimonials: flexible two-column rows -------- */
.testimonial-cards,
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center
}

.testimonial-card {
    flex: 1 1 320px;
    max-width: 460px;
    background: var(--surface);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .22s
}

.testimonial-card p {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 12px
}

.testimonial-card h4 {
    color: var(--primary);
    font-weight: 700
}

.testimonial-card:hover {
    transform: translateY(-6px)
}

/* -------- Why-us list styles -------- */
.why-us {
    background: linear-gradient(45deg, #2557a7, #003893)
}

.why-us h2 {
    color: var(--light)
}

.why-us ul {
    list-style: none;
    padding: 0;
    margin-top: 10px
}

.why-us li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
    color: var(--light);
}

.why-us li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 1.05rem
}

.why-us-image {
    width: 100%;
    border-radius: 10px
}

/* -------- Contact layout & form -------- */
.contact .grid {
    display: block
}

@media(min-width:760px) {
    .contact .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start
    }
}

.contact-info p {
    color: var(--muted);
    margin: 8px 0
}

.social-icons {
    margin-top: 10px
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.05rem;
    transition: transform .18s
}

.social-icons a:hover {
    transform: translateY(-4px)
}

.contact-form {
    background: var(--surface);
    padding: 18px;
    border-radius: 10px;
    box-shadow: var(--shadow)
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    margin-bottom: 12px;
    font-size: 0.98rem
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary)
}

/* full-width submit button */
.contact-form button {
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--light);
    padding: 12px;
    border-radius: 8px;
    border: 0;
    font-weight: 700;
    cursor: pointer
}

.contact-form button:hover {
    background: var(--accent);
    transform: translateY(-2px)
}

/* ==============================
Footer
============================== */
/* ==============================
Professional Full Footer
============================== */

footer {
    background: var(--secondary);
    color: var(--light);
    padding: 60px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.05);
}

/* Footer layout */
.footer-container {
    max-width: 1250px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* Footer branding / intro */
.footer-brand h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 260px;
    line-height: 1.6;
}

/* Footer section titles */
.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--light);
}

/* Footer links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    transition: all 0.25s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Contact info */
.footer-contact p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-contact i {
    margin-right: 6px;
    color: var(--accent);
}

/* Social icons */
.footer-social {
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    margin-right: 10px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: .3s;
    color: var(--light);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

/* Bottom copyright bar */
.footer-bottom {
    margin-top: 50px;
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.10);
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-bottom span {
    color: var(--accent);
    font-weight: 600;
}

/* Responsive tweaks */
@media(max-width: 640px){
    .footer-container {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* -------- Image sharpening / contrast (subtle) -------- */
img {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-backface-visibility: hidden;
    filter: contrast(1.04) saturate(1.03)
}

h1,
h2,
h3 {
    font-weight: 700
}

p {
    color: var(--muted)
}

/* -------- Responsive tweaks -------- */
@media(max-width:760px) {
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 8px
    }

    .nav-links {
        gap: 8px;
        font-size: 0.95rem
    }

    .portfolio-item img {
        height: 180px
    }
}

/* ==============================
Call to Action
============================== */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    text-align: center;
    padding: 80px 20px;
}

.cta-box h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
    color: var(--text-white);
}
.cta-box p {
    opacity: .9;
    margin-bottom: 25px;
    color: var(--text-white);
}

.cta-box .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* ==============================
Animations
============================== */
.fade-in {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page Specific Minimal Styling --- */
.service-hero {
    background: linear-gradient(135deg, #062457, #054597);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.service-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.service-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.feature-box {
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    transition: all .3s ease;
    height: 100%;
    background: #fff;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.process-step {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}