/* --- Responsive Web Designs Specific Styles --- */

.designs-container {
    padding: 3rem 0 5rem;
    background: #ffffff; /* Clean white background matching screenshot */
}

.designs-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Main Content Column */
.designs-content-area {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Intro Section */
.designs-intro {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.designs-intro h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.designs-intro p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.designs-intro p:last-of-type {
    margin-bottom: 1.75rem;
}

.benefits-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.5;
}

.benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2354b4cd'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.visit-subheading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
}

/* Portfolio Section */
.designs-section {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.designs-section-header {
    margin-bottom: 2rem;
}

.designs-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px dotted #cccccc; /* Fine dotted horizontal line matching screenshot */
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

/* Grid Layout */
.designs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Design Card */
.design-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft drop shadow around images */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.design-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.design-card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.design-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-card:hover .design-card-img img {
    transform: scale(1.06);
}

/* Card Hover Overlay */
.design-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 102, 120, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.design-card:hover .design-card-overlay {
    opacity: 1;
}

.design-card-btn {
    padding: 0.6rem 1.5rem;
    background: var(--white);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    transform: translateY(10px);
}

.design-card:hover .design-card-btn {
    transform: translateY(0);
}

.design-card-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding: 50px 1.5rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(30, 58, 68, 0.85);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 100%;
    width: 700px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
    animation: zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    line-height: 1;
}

.close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--secondary);
    transform: rotate(90deg);
}

/* Page sub-navigation active class adjustment */
.page-subnav a.active {
    color: var(--primary);
}

/* Sidebar Column */
.designs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.designs-sidebar > div {
    width: 100% !important;
}

/* CTA Section Styles */
.portfolio-cta {
    padding: 5rem 0;
    background: linear-gradient(358deg, #08718b00 0%, #08718b 100%);
    color: #ffffff;
    text-align: center;
}

.portfolio-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta .page-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 220px;
    margin: 0 auto 2rem;
}

.portfolio-cta .page-divider::before,
.portfolio-cta .page-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.portfolio-cta .page-divider span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8ed973;
    margin: 0 0.65rem;
}

.cta-modes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 2.5rem auto 0 auto;
    max-width: 680px;
}

.cta-mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0.5rem;
}

.cta-mode:hover {
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(-3px);
}

.cta-mode-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cta-mode:hover .cta-mode-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive Rules */
@media (max-width: 992px) {
    .designs-layout {
        grid-template-columns: 1fr;
    }
    .designs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-modes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .designs-grid {
        grid-template-columns: 1fr;
    }
    .designs-intro h1 {
        font-size: 2rem;
    }
}
