/* Page specific styles - inherits base from style.css */

/* ===== HERO ===== */
.page-hero {
    position: relative;
    height: 40vh;
    background: url("images/header/portfolio.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 28, 45, 0.75), rgba(11, 28, 45, 0.55));
    z-index: 1;
}

.page-hero>* {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    max-width: 820px;
    line-height: 1.7;
    opacity: .95;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding-top: 20px;
}

.title {
    color: var(--text-dark);
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 26px;
    line-height: 1.7;
}

/* ===== GRID - 4 cols = 2 rows of 8 cards ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== SPLIT-PANEL PILLAR CARDS ===== */
.card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ===== CARD HEADER — colored gradient band ===== */
.card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 22px;
    gap: 12px;
    position: relative;
}

/* Unique soft gradient per card */
.card:nth-child(1) .card-head {
    background: linear-gradient(140deg, #dbeafe, #bfdbfe);
}

.card:nth-child(2) .card-head {
    background: linear-gradient(140deg, #cffafe, #a5f3fc);
}

.card:nth-child(3) .card-head {
    background: linear-gradient(140deg, #ede9fe, #ddd6fe);
}

.card:nth-child(4) .card-head {
    background: linear-gradient(140deg, #fce7f3, #fbcfe8);
}

.card:nth-child(5) .card-head {
    background: linear-gradient(140deg, #ccfbf1, #99f6e4);
}

.card:nth-child(6) .card-head {
    background: linear-gradient(140deg, #fef3c7, #fde68a);
}

.card:nth-child(7) .card-head {
    background: linear-gradient(140deg, #d1fae5, #a7f3d0);
}

.card:nth-child(8) .card-head {
    background: linear-gradient(140deg, #f3e8ff, #e9d5ff);
}

/* ===== ICON ===== */
.icon {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

/* Icon accent colors */
.card:nth-child(1) .icon {
    color: #3b82f6;
}

.card:nth-child(2) .icon {
    color: #06b6d4;
}

.card:nth-child(3) .icon {
    color: #7c3aed;
}

.card:nth-child(4) .icon {
    color: #db2777;
}

.card:nth-child(5) .icon {
    color: #0d9488;
}

.card:nth-child(6) .icon {
    color: #d97706;
}

.card:nth-child(7) .icon {
    color: #059669;
}

.card:nth-child(8) .icon {
    color: #7c3aed;
}

.card:hover .icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.card h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.tagline {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.8px;
    line-height: 1.5;
    margin: 16px 20px 12px;
    padding: 0 10px;
}

.card ul {
    margin: 0 0 20px;
    padding: 0 20px;
    list-style: none;
    text-align: left;
    flex: 1;
}

.card ul li {
    font-size: 12.5px;
    color: #4a5568;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}

.card ul li:last-child {
    border-bottom: none;
}

.card ul li::before {
    content: "→";
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Bullet arrow accent colors */
.card:nth-child(1) ul li::before {
    color: #3b82f6;
}

.card:nth-child(2) ul li::before {
    color: #06b6d4;
}

.card:nth-child(3) ul li::before {
    color: #7c3aed;
}

.card:nth-child(4) ul li::before {
    color: #db2777;
}

.card:nth-child(5) ul li::before {
    color: #0d9488;
}

.card:nth-child(6) ul li::before {
    color: #d97706;
}

.card:nth-child(7) ul li::before {
    color: #059669;
}

.card:nth-child(8) ul li::before {
    color: #7c3aed;
}

.card:hover ul li {
    transform: translateX(3px);
    color: #2d3748;
}


/* ===== SIMPLIFIED CTA ===== */
.cta {
    margin-top: 60px;
    background: #0b1c2d;
    color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cta p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 680px;
}

.cta a {
    background: #00bcd4;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cta a:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

/* ===== CONTACT POPUP ===== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 45, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.contact-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-box h2 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-box p {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-action {
    display: block;
    margin-top: 12px;
    background: #00bcd4;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.contact-action:hover {
    background: #0097a7;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media(max-width:1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media(max-width:768px) {
    .page-hero {
        height: 30vh !important;
        padding: 0 15px !important;
        justify-content: center !important;
    }

    .page-hero h1 {
        font-size: clamp(24px, 6vw, 36px) !important;
        margin-bottom: 8px !important;
    }

    .page-hero p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    .container {
        width: 92% !important;
        margin: 20px auto !important;
        padding-top: 10px !important;
    }

    .title {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        line-height: 1.6 !important;
    }

    .card-head {
        padding: 20px 15px 16px !important;
        gap: 8px !important;
    }

    .icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }

    .card h2 {
        font-size: 15px !important;
    }

    .tagline {
        font-size: 10px !important;
        margin: 10px 15px 8px !important;
        padding: 0 !important;
    }

    .card ul {
        margin: 0 0 16px !important;
        padding: 0 15px !important;
    }

    .card ul li {
        font-size: 12px !important;
        padding: 5px 0 !important;
    }

    .cta {
        margin-top: 40px !important;
        padding: 24px !important;
        flex-direction: column !important;
        text-align: center !important;
        border-radius: 16px !important;
        gap: 15px !important;
    }

    .cta h3 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .cta p {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }

    .cta a {
        padding: 10px 20px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        width: 100% !important;
        display: block !important;
    }
}

@media(max-width:576px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
}