﻿/* ==========================================================
   WSP INFOTECH WEBSITE
   Common Stylesheet
   Used By:
   - index.html
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f7fb;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: .3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1150px;
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,.08);
}

/* ==========================================================
   COMMON BUTTON
========================================================== */

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
}

    .btn:hover {
        background: #1d4ed8;
        transform: translateY(-3px);
    }

/* ==========================================================
   HEADER
========================================================== */

header {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
}

    .logo span {
        color: #2563eb;
    }

nav {
    display: flex;
    gap: 30px;
}

    nav a {
        color: #555;
        font-weight: 500;
        position: relative;
    }

        nav a:hover {
            color: #2563eb;
        }

        nav a.active {
            color: #2563eb;
            font-weight: 600;
        }

            nav a.active::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -7px;
                width: 100%;
                height: 3px;
                background: #2563eb;
                border-radius: 30px;
            }

/* ==========================================================
   HOME PAGE
========================================================== */

.home-container {
    width: 100%;
    max-width: 1150px;
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    margin: 35px auto;
    box-shadow: 0 15px 50px rgba(0,0,0,.08);
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    margin-bottom: 45px;
}

    .hero h1 {
        font-size: 52px;
        font-weight: 800;
        color: #111827;
        margin-bottom: 12px;
    }

.designation {
    font-size: 20px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 18px;
}

.about {
    max-width: 900px;
    margin: auto;
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

/* ---------- Middle ---------- */

.middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin: 50px 0;
}

.left {
    width: 33%;
    text-align: center;
}

    .left img {
        width: 100%;
        max-width: 360px;
        height: auto;
        border-radius: 0;
        object-fit: contain;
        object-position: center;
        border: none;
        box-shadow: none;
    }

.right {
    width: 67%;
}

/* ==========================================================
   HOME PAGE - SERVICES
========================================================== */

.services {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

.service {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    transition: .35s ease;
    cursor: pointer;
}

    .service i {
        color: #2563eb;
        margin-right: 10px;
    }

    .service:hover {
        background: #2563eb;
        color: #fff;
        transform: translateY(-6px);
        box-shadow: 0 12px 25px rgba(37,99,235,.25);
    }

        .service:hover i {
            color: #fff;
        }

/* ==========================================================
   HOME PAGE - CONTACT
========================================================== */

.contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
}

    .contact a {
        background: #f3f4f6;
        color: #222;
        padding: 15px 28px;
        border-radius: 12px;
        font-weight: 600;
    }

        .contact a i {
            color: #2563eb;
            margin-right: 8px;
        }

        .contact a:hover {
            background: #2563eb;
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(37,99,235,.25);
        }

            .contact a:hover i {
                color: #fff;
            }

/* ==========================================================
   HOME PAGE - DISCLAIMER
========================================================== */

.footer-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 35px 0 25px;
}

.disclaimer {
    text-align: center;
}

    .disclaimer p {
        color: #6b7280;
        font-size: 13px;
        line-height: 1.8;
    }

.copyright {
    margin-top: 15px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

/* ==========================================================
   BLOG PAGE
========================================================== */

.blog-hero {
    text-align: center;
    padding: 60px 20px 30px;
}

    .blog-hero h1 {
        font-size: 48px;
        color: #111827;
        margin-bottom: 20px;
    }

    .blog-hero p {
        max-width: 850px;
        margin: auto;
        color: #666;
        line-height: 1.8;
        font-size: 17px;
    }

/* ==========================================================
   BLOG CATEGORIES
========================================================== */

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 45px 0;
}

    .categories a {
        background: #fff;
        border: 1px solid #ddd;
        color: #333;
        padding: 12px 24px;
        border-radius: 40px;
        transition: .3s;
    }

        .categories a:hover {
            background: #2563eb;
            color: #fff;
        }

.category.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ==========================================================
   BLOG GRID
========================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(340px,1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .35s ease;
}

    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,.12);
    }

    .blog-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 15px;
}

.blog-content h2 {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: #2563eb;
    font-weight: 600;
}

    .read-more:hover {
        letter-spacing: .5px;
    }

/* ==========================================================
   FOOTER
========================================================== */

footer {
    background: #111827;
    color: #fff;
    margin-top: 60px;
    padding: 50px 0 30px;
}

.footer-content {
    text-align: center;
}

    .footer-content h3 {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .footer-content > p {
        color: #d1d5db;
        margin-bottom: 25px;
        font-size: 16px;
    }

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

    .footer-links a {
        color: #fff;
        font-weight: 500;
        position: relative;
        transition: .3s;
    }

        .footer-links a:hover {
            color: #60a5fa;
        }

        .footer-links a.active {
            color: #60a5fa;
            font-weight: 600;
        }

            .footer-links a.active::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -6px;
                width: 100%;
                height: 2px;
                background: #60a5fa;
                border-radius: 20px;
            }

.footer-disclaimer {
    max-width: 900px;
    margin: 30px auto;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.9;
}

    .footer-disclaimer strong {
        color: #fff;
    }

.copyright {
    border-top: 1px solid rgba(255,255,255,.12);
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}


/* ==========================
        Back To Top
========================== */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(37,99,235,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 999;
}

    .back-to-top:hover {
        background: #1d4ed8;
        transform: translateY(-4px);
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* ==========================================================
   ACCESSIBILITY
========================================================== */

::selection {
    background: #2563eb;
    color: #fff;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

/* ==========================================================
   IMAGE POSITION CONTROL
========================================================== */

:root {
    --photo-position: 10%;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:900px) {

    body {
        padding: 20px;
    }

    .home-container {
        padding: 30px 20px;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1,
    .blog-hero h1 {
        font-size: 36px;
    }

    .designation {
        font-size: 17px;
    }

    .about,
    .blog-hero p {
        font-size: 15px;
    }

    .middle {
        flex-direction: column;
        gap: 35px;
        align-items: center;
    }

    .left {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

        .left img {
            width: 100%;
            max-width: 280px;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: 0;
            object-fit: contain;
        }

    .right {
        width: 100%;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .contact {
        flex-direction: column;
        align-items: center;
    }

        .contact a {
            width: 100%;
            max-width: 350px;
            text-align: center;
        }

    .categories {
        gap: 12px;
    }

        .categories a {
            padding: 10px 18px;
            font-size: 14px;
        }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 18px;
    }

    .footer-content h3 {
        font-size: 26px;
    }

    .footer-disclaimer {
        font-size: 12px;
        line-height: 1.8;
    }
}

/* ==========================================================
   LARGE SCREENS
========================================================== */

@media (min-width:1400px) {

    .container {
        max-width: 1300px;
    }

    .home-container {
        max-width: 1250px;
    }
}
