/* ============================================
   Experieco Demos — Portfolio Site Styles
   ============================================ */

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

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --green: #059669;
    --green-light: #d1fae5;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --orange: #ea580c;
    --orange-light: #ffedd5;
    --teal: #0d9488;
    --teal-light: #ccfbf1;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.125rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-accent {
    color: var(--blue);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gray-900);
}

/* Hero */
.hero {
    padding: 80px 0 64px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-alt {
    background: #fff;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--gray-500);
    margin-bottom: 32px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Card */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card-icon.blue { background: var(--blue-light); color: var(--blue); }
.card-icon.green { background: var(--green-light); color: var(--green); }
.card-icon.purple { background: var(--purple-light); color: var(--purple); }
.card-icon.orange { background: var(--orange-light); color: var(--orange); }
.card-icon.teal { background: var(--teal-light); color: var(--teal); }

.card-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 999px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.card-desc {
    color: var(--gray-600);
    font-size: 0.925rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.card-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 6px;
    line-height: 1.5;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.card-tech span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
}

/* Toggle Button */
.card-toggle {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--blue);
    cursor: pointer;
    transition: background .2s, border-color .2s;
    align-self: flex-start;
}

.card-toggle:hover {
    background: var(--blue-light);
    border-color: var(--blue);
}

/* Card Details */
.card-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    animation: fadeIn .3s ease;
}

.card-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
    margin-top: 16px;
}

.card-details h4:first-child {
    margin-top: 0;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.detail-table td {
    padding: 6px 12px 6px 0;
    vertical-align: top;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.detail-table td:first-child {
    white-space: nowrap;
    width: 1%;
}

.detail-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
}

.detail-flow {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-family: monospace;
    word-break: break-word;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Files Table */
.files-table-wrap {
    overflow-x: auto;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.files-table thead {
    background: var(--gray-100);
}

.files-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}

.files-table td {
    padding: 10px 16px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.files-table tbody tr:hover {
    background: var(--blue-light);
}

.files-table a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.files-table a:hover {
    text-decoration: underline;
}

.file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.file-icon.video { background: #fce4ec; color: #c62828; }
.file-icon.audio { background: #e8f5e9; color: #2e7d32; }
.file-icon.image { background: #e3f2fd; color: #1565c0; }
.file-icon.doc { background: #fff3e0; color: #e65100; }

.files-note {
    margin-top: 16px;
    font-size: 0.825rem;
    color: var(--gray-400);
}

.files-note code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    background: #fff;
}

.footer p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-sub {
    margin-top: 4px;
    font-size: 0.8rem !important;
    color: var(--gray-400) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 48px 0 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 56px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }
}
