:root {
    --primary-gold: #CFA76E;
    /* Muted gold/beige from image */
    --text-dark: #111111;
    --text-white: #FFFFFF;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #000;
    /* Fallback */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary-gold);
}

.btn-contact {
    background-color: #111;
    color: #fff;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.btn-contact:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('https://gosucs.netlify.app/img/main_air.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    padding-top: var(--header-height);
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 .highlight {
    color: var(--primary-gold);
    display: block;
    margin-top: 8px;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: #111;
}

.btn-primary:hover {
    background-color: #dcb374;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* FAB */
.fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s;
}

.fab:hover {
    transform: scale(1.05);
}

.fab svg {
    width: 24px;
    height: 24px;
    stroke: #111;
    stroke-width: 2;
}

/* Collections Section */
.collections {
    padding: 140px 20px;
    background-color: #F9FAFB;
    width: 100%;
}

.collections-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-gold);
}

.section-desc {
    margin-top: 30px;
    color: #555;
    font-size: 1.05rem;
    font-weight: 500;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.collection-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collection-card:hover .card-image img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: #111;
    color: var(--primary-gold);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.card-badge.translucent {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
    margin-bottom: 24px;
}

.card-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 40px;
    flex-grow: 1;
    word-break: keep-all;
}

.card-action {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    display: inline-block;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.card-action:hover {
    color: var(--primary-gold);
    border-bottom-color: transparent;
}

/* Dark Card Variant */
.collection-card.dark {
    background-color: #0F1012;
    color: #fff;
    border-color: #222;
}

.collection-card.dark .card-title {
    color: #fff;
}

.collection-card.dark .card-subtitle {
    color: #6B7280;
}

.collection-card.dark .card-desc {
    color: #9CA3AF;
}

/* Visualizer Section */
.visualizer-section {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 900px;
    background-color: #111;
    color: #fff;
}

.visualizer-sidebar {
    width: 400px;
    background-color: #111;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
    flex-shrink: 0;
    z-index: 10;
}

.visualizer-label {
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.visualizer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.visualizer-desc {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.6;
    word-break: keep-all;
}

.visualizer-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #222;
    border: 1px solid #333;
    color: #888;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.filter-btn:hover:not(.active) {
    background-color: #333;
    color: #fff;
}

.pattern-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 10px;
}

.pattern-list::-webkit-scrollbar {
    width: 4px;
}

.pattern-list::-webkit-scrollbar-track {
    background: #222;
}

.pattern-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.pattern-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.2s, border-left 0.2s, padding-left 0.2s;
}

.pattern-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.pattern-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-gold);
    padding-left: 6px;
}

.pattern-thumb {
    width: 60px;
    height: 60px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.pattern-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pattern-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pattern-code {
    color: var(--primary-gold);
    font-size: 0.7rem;
    font-weight: 700;
}

.pattern-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.visualizer-preview {
    flex-grow: 1;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 0 60px 60px;
    justify-content: space-between;
}

.selected-info {
    max-width: 500px;
}

.selected-label {
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.selected-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.selected-desc {
    color: #aaa;
    font-size: 0.95rem;
}

.selected-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #E2C799;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-size: cover;
}

/* Calculator Section */
.calculator-section {
    padding: 100px 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.calculator-container {
    width: 100%;
    max-width: 1000px;
    background-color: #F8F9FA;
    border-radius: 16px;
    padding: 40px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.calc-header {
    flex: 1;
    min-width: 300px;
}

.calc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.calc-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-gold);
}

.calc-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: keep-all;
}

.calc-input-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
}

.calc-input {
    width: 120px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 0 10px;
    outline: none;
    transition: border-color 0.2s;
}

.calc-input:focus {
    border-color: var(--primary-gold);
}

.calc-arrow {
    color: #ccc;
    margin-top: 24px;
}

.result-box {
    background-color: #111;
    color: #fff;
    padding: 20px 30px;
    border-radius: 4px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 90px;
}

.result-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.result-unit {
    font-size: 1rem;
    color: #fff;
    margin-left: 4px;
}

.calc-note {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* Portfolio Section */
.portfolio-section {
    padding: 140px 20px;
    background-color: #fff;
}

.portfolio-header {
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-label {
    color: var(--primary-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.portfolio-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111;
}

/* Board Controller */
.board-controller {
    max-width: 1400px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 24px;
}

.board-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background-color: #fff;
}

.category-tab.active {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #fff;
    box-shadow: 0 4px 10px rgba(207, 167, 110, 0.2);
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.2s;
}

.toggle-btn:hover {
    color: #111;
    background-color: #f9f9f9;
}

.toggle-btn.active {
    background-color: #111;
    color: #fff;
}

/* Board Search */
.board-search {
    display: flex;
    gap: 8px;
}

.search-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.search-select:focus {
    border-color: var(--primary-gold);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 40px 8px 14px;
    font-size: 0.9rem;
    outline: none;
    width: 220px;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary-gold);
    width: 260px;
    box-shadow: 0 0 0 3px rgba(207, 167, 110, 0.15);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--primary-gold);
}

/* Board Content Area */
.board-content {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 400px;
}

/* Grid View Mode */
.portfolio-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #efefef;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-gold);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: #eaeaea;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-item:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(4px);
    color: var(--primary-gold);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    z-index: 5;
    letter-spacing: 0.02em;
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-views-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-post-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.2s;
}

.portfolio-card-item:hover .card-post-title {
    color: var(--primary-gold);
}

.card-post-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
}

/* List View Mode (Table) */
.board-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.board-table th {
    background-color: #f9fafb;
    color: #111;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid #eaeaea;
    text-align: center;
}

.board-table th.th-title {
    text-align: left;
    padding-left: 30px;
}

.board-table td {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: #4b5563;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    transition: all 0.2s;
}

.board-table tr {
    cursor: pointer;
}

.board-table tr:hover td {
    background-color: #faf7f2;
    color: #111;
}

.board-table tr:last-child td {
    border-bottom: none;
}

.table-num {
    font-weight: 600;
    color: #9ca3af;
}

.table-badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.board-table tr:hover .table-badge {
    background-color: rgba(207, 167, 110, 0.15);
    color: var(--primary-gold);
}

.table-title-cell {
    text-align: left !important;
    padding-left: 30px !important;
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    transition: color 0.2s;
}

.board-table tr:hover .table-title-cell {
    color: var(--primary-gold);
}

.table-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.table-views {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Empty State */
.board-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: #9ca3af;
    font-weight: 500;
    gap: 16px;
}

.board-empty svg {
    color: #d1d5db;
}

/* Pagination Control */
.board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
}

.page-btn {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background-color: #faf7f2;
}

.page-btn.active {
    background-color: #111;
    border-color: #111;
    color: #fff;
}

.page-btn.disabled {
    color: #d1d5db;
    border-color: #f3f4f6;
    background-color: #f9fafb;
    cursor: not-allowed;
}

.page-arrow {
    width: auto;
    padding: 0 14px;
}

/* Write Post Button */
.btn-write {
    background-color: var(--primary-gold);
    color: #111;
    border: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-write:hover {
    background-color: #dcb374;
    transform: translateY(-1px);
}

.btn-write svg {
    stroke: #111;
}

/* Write Modal */
.write-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.write-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.write-modal {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.write-modal-backdrop.active .write-modal {
    transform: translateY(0);
}

.write-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
}

.write-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(207, 167, 110, 0.15);
}

.write-modal-footer {
    padding: 16px 24px;
    background-color: #f9fafb;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #4b5563;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background-color: #f3f4f6;
}

.btn-modal-submit {
    background-color: #111;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-submit:hover {
    background-color: var(--primary-gold);
    color: #fff;
}

/* Our Story Section */
.story-section {
    padding: 100px 20px;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
}

.story-card {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 500px;
}

.story-image {
    flex: 1;
    background-color: #eee;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.story-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-label {
    color: var(--primary-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.story-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    line-height: 1.3;
}

.story-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 40px;
    word-break: keep-all;
}

.story-stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background-color: #F5F5F5;
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact-section {
    background-color: #18181b;
    padding: 100px 20px;
    color: #fff;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.contact-desc {
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 50px;
    font-size: 1rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    margin-top: 4px;
    color: var(--primary-gold);
    min-width: 20px;
}

.contact-text-group h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.contact-text-group p {
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #27272a;
}

.contact-map iframe {
    border: 0;
}

/* Footer */
footer {
    background-color: #18181b;
    padding: 40px 20px;
    border-top: 1px solid #27272a;
    color: #71717a;
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Portfolio Sidebar Drawer */
.portfolio-sidebar {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.portfolio-sidebar.active {
    right: 0;
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-header {
    padding: 24px 40px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 40px;
}

.sidebar-main-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}

.sidebar-category {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.sidebar-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    word-break: keep-all;
}

.used-product-box {
    background-color: #F8F9FA;
    border-radius: 12px;
    padding: 24px;
}

.used-product-box h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #111;
}

.product-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-thumb-small {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.product-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.product-details span {
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Overlay Navigation Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    color: var(--text-dark);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .collection-card {
        margin: 0 auto;
        width: 100%;
    }
    .visualizer-section {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    .visualizer-sidebar {
        width: 100%;
        height: auto;
        padding: 40px 20px;
    }
    .visualizer-preview {
        height: 50vh;
    }
    .preview-overlay {
        padding: 0 20px 40px;
    }
    .portfolio-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .story-card {
        flex-direction: column;
    }
    .story-image {
        min-height: 300px;
    }
    .story-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }
    nav {
        display: none;
    }
    .btn-contact {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    .visualizer-sidebar {
        padding: 20px;
        max-height: 400px;
        overflow-y: auto;
    }
    .pattern-list {
        max-height: 200px;
    }
    .board-controller {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .board-actions {
        justify-content: space-between;
    }
    .board-search {
        flex-grow: 1;
    }
    .search-input-wrapper {
        flex-grow: 1;
    }
    .search-input {
        width: 100%;
    }
    .search-input:focus {
        width: 100%;
    }
    .contact-container {
        flex-direction: column;
    }
    .contact-map {
        width: 100%;
        height: 300px;
    }
    .calculator-container {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    .calc-title {
        justify-content: center;
    }
    .calc-input-group {
        flex-direction: column;
        gap: 20px;
    }
    .calc-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid-view {
        grid-template-columns: 1fr;
    }
    .board-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }
    .view-toggle {
        justify-content: center;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .portfolio-sidebar {
        max-width: 100%;
    }
    .sidebar-header,
    .sidebar-content {
        padding: 20px;
    }
}
