/* ============================================================
   Njenga Sam Portfolio 2.0 - Main Stylesheet
   Color Theory: Complementary Scheme (60-30-10 rule)
     Primary   : Blue   #2563EB (trust, stability, engineering)
     Neutral   : Slate/Off-white backgrounds
     Accent    : Amber  #F59E0B (energy, warmth, creativity)
   Contrast ratios tuned for WCAG AA on interactive elements.
   ============================================================ */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF4FF;
    --primary-extra-light: #F5F8FF;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FEF3C7;
    --bg: #F6F8FB;
    --panel: #FFFFFF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #DCE5F5;
    --danger: #DC2626;
    --success: #16A34A;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14);
    --radius: 14px;
    --transition: all 0.25s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

/* ----- Layout Utilities ----- */
.p-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.p-section {
    padding: 5rem 0;
}

.p-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.p-section-header .p-subtitle {
    color: var(--accent-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.p-section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.p-section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ----- Navbar ----- */
.p-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(37, 99, 235, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
    padding: 0.6rem 0;
}

.p-navbar .p-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.p-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.p-brand:hover {
    color: #fff;
}

.p-brand-accent {
    color: var(--accent);
}

.p-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.p-nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.p-nav-links a:hover,
.p-nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.p-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.p-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
}

/* ----- Hero / Intro ----- */
.p-hero {
    padding: 4rem 0 3rem;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 45%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 45%),
        var(--bg);
    overflow: hidden;
}

.p-hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
    align-items: center;
}

/* h1.sec1 stays as the user wanted */
.p-hero h1.sec1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.p-hero h1.sec1 .p-hero-highlight {
    color: var(--accent-dark);
}

/* #sec2 + imageContainer appear side-by-side on large screens */
.p-hero .p-hero-cta {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

#sec2 {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

#sec2 strong {
    color: var(--text);
}

.imgContainer {
    display: flex;
    justify-content: center;
}

.myImg {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.25), 0 4px 14px rgba(37, 99, 235, 0.12);
    background: var(--primary-light);
}

/* ----- Buttons ----- */
.p-btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.p-btn-primary {
    background: var(--primary);
    color: #fff;
}

.p-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.p-btn-accent {
    background: var(--accent);
    color: #1F2937;
}

.p-btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.p-btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--primary);
}

.p-btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ----- About Section ----- */
.p-about-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.p-about-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.p-about-card p strong {
    color: var(--primary);
}

/* ----- Services ----- */
.p-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.p-service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.p-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.p-service-card:hover::before {
    transform: scaleX(1);
}

.p-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.35);
}

.p-service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.p-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.p-service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ----- Projects / Recent Works Grid ----- */
.p-projects-section .p-section-header p {
    max-width: 620px;
    margin: 0 auto;
}

/* The scrollable gallery container - mimics writing_dev's articles_listing
   Large screens: 3 columns x 2 rows visible (6 cards), then scrolls inward. */
.p-recent-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    max-width: 50vw;
    /* cap on large/landscape screens */
    margin: 0 auto;
    max-height: 680px;
    /* ~3 rows of cards -> 2 rows visible + scrollbar */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0.75rem 1rem;
}

/* Hidden scrollbar horizontally, styled scrollbar vertically (amber thumb) */
.p-recent-works::-webkit-scrollbar {
    width: 10px;
}

.p-recent-works::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 10px;
}

.p-recent-works::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.p-recent-works::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

.p-project-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    min-height: 260px;
}

.p-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.45);
}

.p-project-thumb {
    height: 180px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2.5rem;
    color: var(--primary);
}

.p-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-project-body {
    padding: 1.2rem;
}

.p-project-body .p-project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.p-project-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.p-project-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.p-project-hint {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* ----- Testimonials ----- */
.p-testimonials-section {
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.p-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.p-testimonial-card {
    background: var(--primary-extra-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

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

.p-testimonial-stars {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.p-testimonial-content {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.p-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.p-testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.p-testimonial-author h4 {
    font-size: 0.95rem;
    color: var(--text);
}

.p-testimonial-author span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ----- Contact Section / Page ----- */
.p-contact-section {
    background: var(--panel);
}

.p-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.p-contact-info h2 {
    margin-bottom: 1rem;
}

.p-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.p-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.p-contact-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 0.2rem;
}

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

.p-contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.p-contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.p-contact-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.p-contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.p-contact-detail .p-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.p-contact-detail p {
    margin: 0;
    font-size: 0.95rem;
}

.p-contact-detail p strong {
    display: block;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-form-panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.p-form-group {
    margin-bottom: 1.2rem;
}

.p-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.p-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--panel);
    transition: var(--transition);
}

.p-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.p-form-control {
    min-height: 120px;
    resize: vertical;
}

.p-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.p-alert {
    padding: 1rem 1.4rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.p-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.p-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ----- Modal (iframe project details) ----- */
.p-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.p-modal.open {
    display: flex;
}

.p-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.p-modal-content {
    position: relative;
    background: var(--panel);
    width: 100%;
    max-width: 900px;
    height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.p-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.p-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.p-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

/* ----- Project Detail (inside modal iframe) ----- */
.p-detail {
    padding: 2rem;
    background: var(--bg);
    min-height: 100%;
}

.p-detail .p-detail-image {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.p-detail .p-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-detail .p-detail-category {
    color: var(--accent-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.p-detail h1 {
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.p-detail .p-detail-desc {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.p-detail .p-detail-desc strong {
    color: var(--primary);
}

.p-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.p-coming-soon {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ----- Footer ----- */
.p-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0 0;
    margin-top: auto;
}

.p-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.p-footer h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.p-footer h3 span {
    color: var(--accent);
}

.p-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.p-socials {
    display: flex;
    gap: 0.7rem;
}

.p-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.p-socials a:hover {
    background: var(--accent);
    color: #1F2937;
    transform: translateY(-3px);
}

.p-footer-links li {
    margin-bottom: 0.6rem;
}

.p-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.p-footer-links a:hover {
    color: var(--accent);
}

.p-footer-contact li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
}

.p-footer-contact .p-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.p-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.82rem;
}

.p-compliance-link {
    color: var(--accent);
    font-weight: 600;
}

.p-compliance-link:hover {
    color: #fff;
}

/* ----- Page Banner (inner pages) ----- */
.p-page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0 3.5rem;
    text-align: center;
    color: #fff;
    position: relative;
}

.p-page-banner h1 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.p-page-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.p-page-banner .p-banner-accent {
    color: var(--accent);
}

/* ----- Compliance page helpers ----- */
.p-compliance-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .p-recent-works {
        max-width: 75vw;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .p-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .p-nav-links.open {
        display: flex;
    }

    .p-nav-links a {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .p-nav-links a:last-child {
        border-bottom: none;
    }

    .p-nav-toggle {
        display: block;
    }

    .p-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .p-hero h1.sec1 {
        font-size: 2.2rem;
    }

    /* #sec2 + imageContainer stack (image below text) on small screens */
    .p-hero .p-hero-cta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .imgContainer {
        order: 2;
    }

    .myImg {
        width: 160px;
        height: 160px;
    }

    .p-recent-works {
        max-width: 90%;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        max-height: none;
    }

    .p-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .p-contact-grid {
        grid-template-columns: 1fr;
    }

    .p-form-row {
        grid-template-columns: 1fr;
    }

    .p-section {
        padding: 3.5rem 0;
    }

    .p-detail {
        padding: 1.2rem;
    }

    .p-detail .p-detail-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .p-navbar .p-brand span {
        font-size: 0.95rem;
    }

    .p-recent-works {
        grid-template-columns: 1fr;
    }

    .p-footer-grid {
        grid-template-columns: 1fr;
    }

    .p-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Larger screens: 3x2 grid, max 50vw as requested */
@media (min-width: 1280px) {
    .p-recent-works {
        max-width: 50vw;
        grid-template-columns: repeat(3, 1fr);
        max-height: 640px;
    }

    .p-hero h1.sec1 {
        font-size: 3.5rem;
    }
}