/* ===========================
   Portfolio Page Styles
   =========================== */

body {
    background-color: #ffffff;
    font-size: 14px;
    color: #fff;
    margin: 0;
    padding: 0;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 40px 0 60px 0;
}

.section-title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0d0d0d;
    position: relative;
    display: inline-block;
}

.section-title h1:after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: #84a4fc;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

/* --------------------------
   Portfolio Grid Base
--------------------------- */
.portfolio-grid {
    display: grid;
    gap: 40px;
    padding: 0 40px 80px 40px;
    background-color: #ffffff;
}

/* --------------------------
   Our Sites Section Grid
--------------------------- */
.portfolio-section.our-sites .portfolio-grid {
    grid-template-columns: 1fr; /* mobile: single column */
}

@media (min-width: 768px) {
    .portfolio-section.our-sites .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets/desktops */
    }
}

/* --------------------------
   Demo Sites Section Grid
--------------------------- */
.portfolio-section.demo-sites .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* responsive */
}

/* --------------------------
   Our Sites Cards (Large)
--------------------------- */
.portfolio-card {
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.portfolio-card .card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.portfolio-card .card-content {
    flex: 1;
}

.portfolio-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #0d0d0d;
}

.portfolio-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.portfolio-card a {
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
    background-color: #84a4fc;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.portfolio-card a:hover {
    background-color: #5a7de8;
}

/* --------------------------
   Demo Sites Cards (Smaller)
--------------------------- */
.demo-card {
    padding: 20px;
}

.demo-card .card-image {
    height: 150px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.demo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.demo-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.demo-card a {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Footer & Main Wrapper */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portfolio-section {
    flex: 1;
}

/* Force logo always visible */
.slim-header .logo-group #logo,
.slim-header .logo-group #words {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 67px;
    transition: none !important;
}

/* Card Footer */
.card-content {
    flex: 1;
}

.card-footer {
    margin-top: 20px;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.card-footer a {
    text-decoration: none;
    font-weight: 600;
    color: #ffffff;
    background-color: #84a4fc;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
    display: inline-block;
}

.card-footer a:hover {
    background-color: #5a7de8;
}
