/**
 * Frontend Styles - Premium Brand Portfolio
 * Luxurious design with rich colors and elegant details
 */

:root {
    /* Luxurious color palette */
    --gold: #c9a961;
    --gold-dark: #b8944d;
    --gold-light: #d4b572;
    --purple-deep: #4a3764;
    --purple-rich: #6b4e94;
    --blue-royal: #2d4a7c;
    --blue-bright: #5a7db8;

    /* Primary colors */
    --brand-primary: #6b4e94;
    --brand-accent: #c9a961;
    --text-primary: #1a1826;
    --text-secondary: #6c6a7c;
    --bg-light: #ffffff;
    --bg-cream: #faf8f5;
    --bg-subtle: #f5f3ef;
    --border-color: #e8e6e0;
    --border-gold: rgba(201, 169, 97, 0.3);

    /* Shadows */
    --shadow: 0 2px 16px rgba(106, 78, 148, 0.08);
    --shadow-lg: 0 8px 32px rgba(106, 78, 148, 0.15);
    --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.2);
    --radius: 16px;
    --radius-sm: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-cream);
}

/* Flexbox layout for footer at bottom */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Luxurious gradient */
.site-header {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-rich) 40%, var(--gold) 100%);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.site-header .logo-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.site-header .subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Hero Section (for portfolio pages) */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--brand-color, var(--purple-rich)) 0%, var(--gold) 100%);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
}

.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.back-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.25);
    transform: translateX(-4px);
    border-color: rgba(255,255,255,0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.hero .description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.92);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Client Grid (Desktop) */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 5rem 0;
}

.client-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border: 1px solid var(--border-gold);
    position: relative;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

.client-card:hover::before {
    opacity: 1;
}

.client-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-subtle);
    position: relative;
}

.client-thumb-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 700;
}

.client-info {
    padding: 2rem 1.75rem;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-cream) 100%);
}

.client-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--purple-deep);
}

.client-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Client List (Mobile/Tablet) */
.client-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 0;
}

.client-list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
}

.client-list-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.client-list-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-subtle);
    border: 2px solid var(--border-gold);
}

.client-list-thumb.client-thumb-letter {
    font-size: 1.8rem;
    font-weight: 700;
}

.client-list-info {
    flex: 1;
}

.client-list-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--purple-deep);
}

.client-list-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.client-list-arrow {
    color: var(--gold);
    opacity: 0.6;
    transition: all 0.3s;
}

.client-list-item:hover .client-list-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Responsive visibility toggles */
.mobile-only,
.tablet-only,
.desktop-only {
    display: none;
}

/* Desktop: show grid */
@media (min-width: 1025px) {
    .desktop-only {
        display: grid;
    }
}

/* Tablet: show tablet list (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .tablet-only {
        display: flex;
    }
}

/* Mobile: show mobile list (up to 480px) */
@media (max-width: 480px) {
    .mobile-only {
        display: flex;
    }
}

/* Portfolio Sections */
.portfolio-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.portfolio-section:nth-child(even) {
    background: var(--bg-cream);
}

.portfolio-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--purple-deep);
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    margin-top: 1rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.7;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    color: var(--purple-rich);
}

.subsection-title:first-child {
    margin-top: 0;
}

/* Asset Gallery */
.asset-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.asset-item {
    position: relative;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(106, 78, 148, 0.08);
    border: 1px solid var(--border-gold);
    cursor: pointer;
}

.asset-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

.asset-item img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    padding: 1.25rem;
    background: #fff;
}

.asset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    background: #fff;
}

.asset-caption {
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-cream);
    border-top: 1px solid var(--border-color);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.asset-variant {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold);
}

/* Website Showcase */
.website-showcase {
    margin-bottom: 4rem;
}

.website-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--purple-deep);
}

.website-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.device-mockups {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.device {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    border: 1px solid var(--border-gold);
}

.device-desktop {
    flex: 0 0 60%;
    max-width: 800px;
}

.device-tablet {
    flex: 0 0 25%;
    max-width: 300px;
}

.device-mobile {
    flex: 0 0 15%;
    max-width: 200px;
}

.device img {
    width: 100%;
    height: auto;
    display: block;
}

.iframe-container {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gold);
}

.iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.website-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Color Palette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.color-swatch {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
}

.color-preview {
    height: 120px;
}

.color-info {
    padding: 1rem;
    background: var(--bg-cream);
}

.color-name {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--purple-deep);
}

.color-role {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Font Specimens */
.font-specimen {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
}

.font-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.font-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple-deep);
}

.font-role, .font-weight {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-cream);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.font-preview {
    font-size: 2rem;
    line-height: 1.4;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-iframe {
    background: linear-gradient(135deg, var(--purple-rich) 0%, var(--gold) 100%);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-iframe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--purple-deep);
    border: 2px solid var(--border-gold);
}

.btn-secondary:hover {
    background: var(--bg-cream);
    border-color: var(--gold);
}

/* Footer - Aligned to bottom */
.site-footer {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-cream) 0%, var(--bg-subtle) 100%);
    border-top: 2px solid var(--border-gold);
    margin-top: auto;
}

.site-footer .btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.site-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Empty States */
.empty-state, .empty-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 2px dashed var(--border-gold);
    margin-top: 2rem;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--purple-deep);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .client-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .site-header {
        padding: 4rem 0 3rem;
    }

    .site-header .logo-title {
        font-size: 2.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .client-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .device-mockups {
        flex-direction: column;
        align-items: center;
    }

    .device {
        max-width: 100% !important;
        flex: 1 1 auto;
    }

    .asset-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .asset-item img {
        height: 120px;
        padding: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .website-actions {
        flex-direction: column;
    }

    .font-preview {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-header .logo-title {
        font-size: 2rem;
    }

    .site-header .subtitle {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .asset-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .asset-item img {
        height: 100px;
        padding: 0.75rem;
    }

    .portfolio-section {
        padding: 3rem 0;
    }

    .client-list {
        padding: 2rem 0;
    }

    .client-list-thumb {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .client-list-thumb.client-thumb-letter {
        font-size: 1.5rem;
    }
}
