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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #05070a;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- Header Styles --- */
header {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    min-height: 120px;
    padding: 18px clamp(24px, 5vw, 72px);
    background-color: #05070a;
    border-bottom: 1px solid rgba(185, 224, 32, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-logo {
    width: clamp(170px, 15vw, 230px);
    height: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: clamp(18px, 2vw, 34px);
}

nav ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    color: #b8bec8;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: #b9e020;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

nav ul li.active a,
nav ul li a:hover {
    color: #b9e020;
}

nav ul li.active a::after,
nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li a:focus-visible,
.btn-outline-black:focus-visible,
.menu-circle:focus-visible {
    outline: 2px solid #b9e020;
    outline-offset: 4px;
}

nav ul li a:active {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-outline-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #b9e020;
    color: #b9e020;
    min-height: 42px;
    padding: 0 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.btn-outline-black:hover {
    background-color: #b9e020;
    color: #05070a;
    border-color: #b9e020;
}

.menu-circle {
    background: #0066ff;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* --- Portfolio Hero Section --- */
.portfolio-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 85vh;
    padding: 60px 8%;
    position: relative;
    /* Adding the subtle blue/green brush background behind the image */
    background: radial-gradient(ellipse at 80% 50%, rgba(30, 116, 245, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(154, 205, 0, 0.08) 0%, transparent 40%);
}

.portfolio-hero-content {
    max-width: 50%;
    z-index: 2;
}

.tagline {
    color: #9acd00;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.portfolio-hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.portfolio-hero-content h1 .highlight-green {
    color: #9acd00;
}

.portfolio-hero-content h1 .highlight-blue {
    color: #1e74f5;
}

.portfolio-hero-content p {
    font-size: 17px;
    color: #c8d0dc;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 35px;
}

/* Green Solid Button */
.hero-cta-btn {
    background-color: #9acd00;
    border: none;
    color: #000000;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.hero-cta-btn:hover {
    background-color: #b0e610;
    transform: scale(1.02);
}

/* --- Hero Graphic Container --- */
.portfolio-hero-graphic-wrapper {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.portfolio-hero-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    /* Drop shadow for the 3D devices */
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.8));
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr auto;
        min-height: 88px;
        padding: 12px 20px;
    }

    .header-logo {
        width: 160px;
    }

    nav {
        display: block;
        grid-column: 1 / -1;
        order: 3;
    }

    nav ul {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: rgba(5, 7, 10, 0.98);
        border: 1px solid rgba(185, 224, 32, 0.18);
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        width: 100%;
        min-height: 46px;
        padding: 0 10px;
    }

    nav ul li a::after {
        left: 10px;
        right: auto;
        width: 42px;
    }

    .btn-outline-black {
        min-height: 40px;
        padding: 0 18px;
    }

    .menu-circle {
        display: flex;
    }

    .portfolio-hero { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px; 
        min-height: auto;
        gap: 40px;
        background: radial-gradient(ellipse at 50% 100%, rgba(30, 116, 245, 0.1) 0%, transparent 50%);
    }
    .portfolio-hero-content { 
        max-width: 100%; 
    }
    .portfolio-hero-content p { 
        margin: 0 auto 35px auto; 
    }
    .portfolio-hero-graphic-wrapper { 
        width: 90%; 
        max-width: 600px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    header {
        min-height: 76px;
        padding: 10px 16px;
    }

    .header-logo {
        width: 132px;
    }

    .btn-outline-black {
        display: none;
    }

    nav ul {
        left: 16px;
        right: 16px;
    }
}
/* --- Portfolio Grid Section --- */
/* ================= PORTFOLIO GRID SECTION ================= */
.portfolio-grid-section {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Portfolio Filter Nav */
.portfolio-filter-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.p-filter-btn {
    background-color: transparent;
    border: 1px solid #1f2a3a;
    color: #a0aab8;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.p-filter-btn:hover {
    border-color: #9acd00;
    color: #ffffff;
}

.p-filter-btn.active {
    background-color: #9acd00;
    border-color: #9acd00;
    color: #000000;
}

/* Portfolio Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

/* Portfolio Card */
.portfolio-card {
    background-color: #0f1622;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1f2a3a;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: #2a3a50;
}

.p-card-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #05080e;
}

.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .p-card-img img {
    transform: scale(1.05);
}

/* Image Overlay Text (Matching the image reference) */
.p-img-overlay-text {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Video Play Button Overlay */
.p-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid #9acd00;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.p-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px; /* Optical center fix */
}

/* Card Body */
.p-card-body {
    padding: 20px 22px 25px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.p-tag {
    color: #9acd00;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.p-card-body h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.p-card-body p {
    color: #c8d0dc;
    font-size: 14px;
    line-height: 1.5;
}

/* Load More Button */
.p-load-more-wrapper {
    margin-top: 45px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.p-load-more-btn {
    background: transparent;
    border: 1px solid #1a5bbf;
    color: #1e74f5;
    padding: 14px 50px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.p-load-more-btn:hover {
    background-color: #1a5bbf;
    color: #ffffff;
}

.p-load-more-btn:disabled {
    border-color: #2a3441;
    color: #7b8798;
    cursor: not-allowed;
}

.p-load-more-btn:disabled:hover {
    background: transparent;
    color: #7b8798;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .p-card-img {
        height: 180px;
    }
}

/* ================= footer section SECTION =================*/
/* ================= CTA / FOOTER BANNER SECTION ================= */
.cta-banner-section {
    position: relative;
    max-width: 1250px;
    width: 100%;
    margin: 20px auto 80px auto;
    padding: 40px 50px;
    /* Recreating the Deep Blue background shown in the image */
    background: #0b1e42; 
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

/* Recreating the left and right paint strokes using CSS */
.cta-stroke-left, .cta-stroke-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    pointer-events: none;
    z-index: 1;
}
.cta-stroke-left {
    left: 0;
    background: radial-gradient(circle at 0% 50%, rgba(154, 205, 0, 0.4) 0%, transparent 70%);
    filter: blur(15px);
}
.cta-stroke-right {
    right: 0;
    background: radial-gradient(circle at 100% 50%, rgba(30, 116, 245, 0.6) 0%, transparent 70%);
    filter: blur(15px);
}

.cta-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 2;
    gap: 30px;
}

/* --- Left Column: Text & Features --- */
.cta-left-col {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cta-text h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cta-text h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

.cta-features {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-right: 20px;
}

/* Vertical Dividers between icons */
.cta-feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.cta-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.cta-feature-item span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* --- Right Column: Buttons --- */
.cta-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-width: 220px;
}

.cta-btn-primary {
    background-color: #9acd00;
    border: none;
    color: #000000;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}
.cta-btn-primary:hover {
    background-color: #b0e610;
    transform: scale(1.02);
}

.cta-btn-secondary {
    background: transparent;
    border: 1px solid #1e74f5;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.cta-btn-secondary:hover {
    background-color: #1e74f5;
    color: #000000;
}

/* --- Responsive CTA Section --- */
@media (max-width: 1024px) {
    .cta-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .cta-left-col {
        width: 100%;
        align-items: center;
    }
    .cta-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    .cta-feature-item:not(:last-child)::after {
        display: none; /* Remove dividers on mobile */
    }
    .cta-right-col {
        width: 100%;
        max-width: 350px;
    }
    .cta-stroke-left, .cta-stroke-right {
        width: 80px;
    }
}

@media (max-width: 600px) {
    .cta-banner-section {
        padding: 30px 20px;
    }
    .cta-text h2 {
        font-size: 22px;
    }
    .cta-feature-item {
        flex-direction: column;
        text-align: center;
    }
}
