/* ============================================
   Purple Dog Technologies - Section Layout
   File: css/layout/sections.css
   ============================================ */

/* General Section Styles */
section {
    padding: 100px 2rem;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.section-label::after {
    background: linear-gradient(90deg, var(--primary), transparent);
}

.section-title {
    font-family: 'Audiowide', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Page Header (Internal Pages) */
.page-header {
    padding: 160px 2rem 80px;
    background:
            linear-gradient(rgba(10, 10, 15, 0.6), rgba(10, 10, 15, 0.6)),
            url('../../images/pd-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(190, 55, 243, 0.1) 0%, transparent 60%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: 'Audiowide', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Project Logo in Page Header */
.page-header .project-logo {
    max-width: 300px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 1.5rem auto;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 1);
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-label::before,
    .section-label::after {
        width: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 120px 1.5rem 60px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 1rem;
    }
}
