/*
Theme Name: Kazi Portfolio
Theme URI: https://kazimukituzzaman.com
Author: Portfolio Studio
Description: Professional portfolio theme inspired by sakifshamim.com for Ln. Kazi Mukituzzaman, MBA. Easy to edit via Pages, Posts, and Customizer.
Version: 1.0.7142
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kazi-portfolio
*/

:root {
    --base-color: #1e3a8a;
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --soft-bg: #eff6ff;
    --text-color: #1e293b;
    --muted: #64748b;
    --dark: #0f172a;
    --bg-color: #ffffff;
    --card-shadow: 0 12px 40px rgba(30, 64, 175, 0.1);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

a { color: var(--primary-color); text-decoration: none; transition: color .25s; }
a:hover { color: var(--secondary-color); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* Navbar */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 1.25rem;
}

.custom-navbar {
    width: min(920px, 94%);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.custom-navbar.is-sticky {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -16px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.navbar-brand {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.primary-menu a {
    color: var(--text-color);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.2rem;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--primary-color);
}

/* Hero */
.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 8.5rem 0 5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.18), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(30, 64, 175, 0.12), transparent 35%),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin: 0 0 0.75rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 1.25rem;
}

.hero-bio {
    color: #475569;
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    color: #fff !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
}

.btn-outline {
    color: var(--primary-color) !important;
    background: #fff;
    border: 1.5px solid rgba(30, 64, 175, 0.25);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-meta strong { color: var(--dark); display: block; }

.hero-photo-wrap {
    position: relative;
    max-width: 420px;
    margin-left: auto;
}

.hero-photo {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #e2e8f0;
    aspect-ratio: 4/5;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: -18px;
    bottom: 28px;
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1.15rem;
    box-shadow: var(--card-shadow);
    min-width: 140px;
}

.hero-badge span {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: "Playfair Display", serif;
    line-height: 1;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-muted { background: #f8fafc; }
.section-dark {
    background: var(--dark);
    color: #e2e8f0;
}
.section-dark h2,
.section-dark h3 { color: #fff; }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin: 0 0 0.75rem;
}

.section-head h2 em,
.section-head h2 span {
    color: var(--primary-color);
    font-style: italic;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

/* Cards */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--soft-bg);
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.card .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
}

.card li { margin-bottom: 0.45rem; }

.expertise-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    border: 1px solid #e2e8f0;
}

.expertise-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.expertise-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Education / memberships */
.edu-list .item {
    padding: 1.1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.edu-list .item:last-child { border-bottom: 0; }
.edu-list h4 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.edu-list .meta { color: var(--primary-color); font-weight: 600; }
.edu-list .year { color: var(--muted); font-size: 0.9rem; }

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pill {
    background: var(--soft-bg);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item strong { display: block; color: #fff; }
.contact-item span, .contact-item a { color: #cbd5e1; }

.wpcf7 form, .contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font: inherit;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* Page banner */
.page-banner {
    padding: 8.5rem 0 3.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    text-align: center;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 0.5rem;
}

.page-banner p { color: var(--muted); margin: 0; }

.content-wrap {
    padding: 3.5rem 0 5rem;
}

.entry-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #334155;
}

.entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content ul { padding-left: 1.2rem; }

/* Blog */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform .25s, box-shadow .25s;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
}

.post-card .thumb {
    aspect-ratio: 16/10;
    background: var(--soft-bg);
    overflow: hidden;
}

.post-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .body { padding: 1.25rem 1.35rem 1.5rem; }
.post-card .meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.post-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
}
.post-card h3 a { color: var(--dark); }
.post-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Shop tweaks */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    padding: 1rem !important;
    background: #fff;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.75rem 1.25rem !important;
}

/* Footer */
.site-footer {
    background: #020617;
    color: #94a3b8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.site-footer a { color: #e2e8f0; }
.site-footer .brand {
    color: #fff;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

/* Admin bar offset */
.admin-bar .custom-navbar.is-sticky { top: 46px; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .contact-grid,
    .cards-3,
    .cards-4,
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .hero-photo-wrap { margin: 0 auto; max-width: 360px; }
    .custom-navbar { width: min(96%, 720px); border-radius: 20px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.75rem;
    }
    .primary-menu.is-open { display: flex; }
    .custom-navbar {
        flex-wrap: wrap;
        border-radius: 18px;
        width: 94%;
    }
    .hero-grid,
    .contact-grid,
    .cards-2,
    .cards-3,
    .cards-4,
    .posts-grid { grid-template-columns: 1fr; }
    .hero-section { padding-top: 7rem; min-height: auto; }
    .hero-badge { left: 12px; bottom: 12px; }
    .section { padding: 3.5rem 0; }
}
