/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-darker: #0b0908;
    --color-bg-main: #120f0e;
    --color-bg-card: #1c1815;
    --color-bg-card-hover: #26211d;
    --color-border: #2e2621;
    --color-border-hover: #453932;
    
    /* Accents */
    --color-primary: #d4a373;       /* Warm Cappuccino */
    --color-primary-hover: #e6b88a;
    --color-primary-rgb: 212, 163, 115;
    --color-secondary: #faedcd;     /* Steamed Cream */
    --color-accent: #e9c46a;        /* Crema Gold */
    --color-accent-rgb: 233, 196, 106;
    
    /* Coffee Colors */
    --color-espresso: #4a3728;
    --color-latte: #c2a68f;
    --color-foam: #e6dfd5;
    
    /* Text Colors */
    --color-text-primary: #fbf9f6;
    --color-text-secondary: #b5a89e;
    --color-text-muted: #7d7065;
    
    /* Font Families */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    /* Layout Constants */
    --header-height: 80px;
    --header-height-scroll: 68px;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-darker);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--border-radius-full);
    border: 2px solid var(--color-bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   REUSABLE UTILITIES & BUTTONS
   ========================================================================== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-darker);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.2);
}

.btn-secondary {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.btn-secondary:hover {
    background: rgba(var(--color-primary-rgb), 0.2);
    color: var(--color-text-primary);
    border-color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 900;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    height: var(--header-height-scroll);
    background: rgba(18, 15, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--color-border);
}

.header-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo-icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 80% 20%, #221812 0%, var(--color-bg-main) 60%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(212, 163, 115, 0.03) 1px, transparent 0),
        radial-gradient(rgba(212, 163, 115, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.badge-wrapper {
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.status-badge svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

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

/* Hero Visual Graphic */
.hero-visual {
    position: relative;
    width: 100%;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.image-wrapper img {
    border-radius: calc(var(--border-radius-lg) - 8px);
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center 20%;
}

.visual-accent-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(rgba(212, 163, 115, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.visual-accent-2 {
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(rgba(233, 196, 106, 0.1), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Scroll Down Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse-icon {
    width: 28px;
    height: 46px;
    border: 2px solid var(--color-text-muted);
    border-radius: var(--border-radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-full);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ==========================================================================
   ABOUT / JOURNEY SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-bounce);
}

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

.about-card:hover .card-icon {
    background: var(--color-primary);
    color: var(--color-bg-darker);
    transform: scale(1.1) rotate(5deg);
}

.card-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.card-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 20px;
    font-style: italic;
}

.about-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   INTERACTIVE BREW BAR SECTION
   ========================================================================== */
/* ==========================================================================
   PORTFOLIO SHOWCASE GRID SECTION
   ========================================================================== */
.portfolio-section {
    background: linear-gradient(180deg, var(--color-bg-main) 0%, var(--color-bg-darker) 100%);
    position: relative;
}

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

.portfolio-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-primary-rgb), 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: var(--color-bg-card-hover);
}

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

.port-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--color-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .port-card-icon {
    background: var(--color-primary);
    color: var(--color-bg-darker);
    transform: scale(1.05);
}

.port-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.port-card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.portfolio-card h3 {
    font-size: 1.35rem;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.port-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.port-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: auto;
}

.port-card-link i {
    transition: var(--transition-smooth);
}

.portfolio-card:hover .port-card-link {
    color: var(--color-primary-hover);
}

.portfolio-card:hover .port-card-link i {
    transform: translateX(6px);
}

#port-card-1, #port-card-2, #port-card-3 {
    grid-column: span 2;
}

#port-card-4, #port-card-5 {
    grid-column: span 3;
}

/* Brew Display Widget & Machine */
.brew-display {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 580px;
}

/* Machine Animation Area */
.coffee-brewer-widget {
    background: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brewer-machine {
    position: relative;
    width: 200px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.machine-head {
    width: 120px;
    height: 30px;
    background: #2b2520;
    border-radius: var(--border-radius-sm);
    border-bottom: 4px solid var(--color-border);
    position: relative;
    z-index: 5;
}

.portafilter {
    width: 70px;
    height: 12px;
    background: #3e362f;
    margin-top: 0px;
    border-radius: 2px;
    position: relative;
    z-index: 4;
}

.portafilter::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 2px;
    width: 50px;
    height: 8px;
    background: #1c1815;
    border-radius: 0 4px 4px 0;
}

.drip-stream {
    width: 4px;
    height: 0;
    background: var(--color-espresso);
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
}

.drip-stream.brewing {
    animation: dripPour 1.5s ease-in-out forwards;
}

@keyframes dripPour {
    0% { height: 0; opacity: 1; }
    20% { height: 75px; opacity: 1; }
    80% { height: 75px; opacity: 1; }
    100% { height: 75px; opacity: 0; }
}

.coffee-cup {
    width: 64px;
    height: 56px;
    background: var(--color-text-primary);
    border-radius: 0 0 24px 24px;
    border: 3px solid var(--color-border);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    overflow: hidden;
}

.cup-handle {
    width: 18px;
    height: 28px;
    border: 3px solid var(--color-border);
    border-left: none;
    border-radius: 0 14px 14px 0;
    position: absolute;
    right: -18px;
    top: 10px;
    z-index: 2;
}

.coffee-cup .cup-handle {
    pointer-events: none;
}

.coffee-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-espresso);
    transition: height 3s ease-in-out;
}

.cup-foam {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-foam);
    opacity: 0.85;
    transition: height 3.2s ease-in-out;
    border-top: 4px solid var(--color-primary);
}

.coffee-liquid.filled {
    height: 85%;
}

.cup-foam.filled {
    height: 15%;
    bottom: 80%;
}

.brewing-status {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-top: 16px;
}

/* ==========================================================================
   LUCKY BREW GACHA SECTION
   ========================================================================== */
.gacha-section {
    background: radial-gradient(circle at 10% 80%, #221812 0%, var(--color-bg-main) 50%);
    position: relative;
    border-top: 1px solid var(--color-border);
}

.gacha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.gacha-machine-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.gacha-machine-panel .coffee-brewer-widget {
    background: transparent;
    border-bottom: none;
    padding: 0;
    margin-bottom: 32px;
}

.btn-gacha {
    width: 100%;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gacha-recipe-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gacha-recipe-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.gacha-recipe-card.active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(var(--color-primary-rgb), 0.12);
}

.gacha-recipe-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.gacha-coffee-name {
    font-size: 1.75rem;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.recipe-divider-dashed {
    border-top: 1px dashed var(--color-border);
    margin: 24px 0;
    width: 100%;
}

.recipe-divider-dotted {
    border-top: 1px dotted var(--color-border);
    margin: 20px 0;
    width: 100%;
}

.recipe-details-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.detail-line .label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.detail-line .value {
    color: var(--color-text-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.recipe-details-body h5.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.gacha-recipe-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.gacha-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.gacha-card-footer .watermark {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--color-text-muted);
    opacity: 0.4;
}

/* ==========================================================================
   CONTACT SECTION & CAFÉ INVOICE
   ========================================================================== */
.contact-section {
    background: radial-gradient(circle at 10% 80%, #221812 0%, var(--color-bg-main) 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

/* Cafe Receipt Styling */
.receipt-card-container {
    perspective: 1000px;
    min-width: 0;
}

.receipt-card {
    background: #f4f3ef; /* Off-white thermal paper */
    color: #1c1a17; /* Dark charcoal printed text */
    padding: 40px;
    border-radius: 4px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--color-primary);
    max-width: 100%;
}

/* Zigzag receipt cut effect using CSS gradients */
.receipt-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: linear-gradient(135deg, transparent 50%, #f4f3ef 50%), linear-gradient(225deg, transparent 50%, #f4f3ef 50%);
    background-position: bottom left;
    background-size: 10px 10px;
    background-repeat: repeat-x;
    transform: translateY(5px);
}

.receipt-header {
    text-align: center;
    margin-bottom: 24px;
}

.receipt-shop-name {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: #1c1a17;
    margin-bottom: 4px;
}

.receipt-address, .receipt-date, .receipt-cashier {
    font-size: 0.8rem;
    color: #5c564f;
    margin-bottom: 2px;
}

.receipt-divider {
    border-top: 1px dashed #7a7369;
    margin: 16px 0;
}

.receipt-item-group {
    margin-bottom: 20px;
}

.receipt-row {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2e2a25;
}

.item-number {
    margin-right: 8px;
    color: #7a7369;
}

.dots-spacer {
    flex-grow: 1;
    border-bottom: 1px dotted #a89f92;
    margin: 0 8px;
    align-self: flex-end;
    margin-bottom: 4px;
}

.receipt-input, .receipt-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #c2b9ad;
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #1c1a17;
    outline: none;
    transition: var(--transition-smooth);
}

.receipt-input:focus, .receipt-textarea:focus {
    border-color: #1c1a17;
}

.receipt-textarea {
    height: 90px;
    resize: none;
    line-height: 1.4;
}

.receipt-calculations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.calc-row {
    display: flex;
    justify-content: space-between;
}

.total-row {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1c1a17;
    margin-top: 4px;
}

.receipt-submit-btn {
    width: 100%;
    background: #1c1a17;
    color: #f4f3ef;
    border: none;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.receipt-submit-btn:hover {
    background: #403b35;
}

.receipt-footer {
    text-align: center;
    margin-top: 32px;
}

.barcode {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #1c1a17;
    opacity: 0.8;
    margin-bottom: 8px;
    line-height: 1;
}

.thank-you {
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a7369;
}

/* Info Details Panel */
.contact-details-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.info-text {
    min-width: 0;
}

.info-value {
    overflow-wrap: anywhere;
}

.info-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.4);
    background: var(--color-bg-card-hover);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card a.info-value:hover {
    color: var(--color-primary);
}

.coffee-quote-card {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05) 0%, rgba(var(--color-accent-rgb), 0.03) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    color: rgba(var(--color-primary-rgb), 0.08);
    z-index: 1;
}

.coffee-quote-card blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.coffee-quote-card cite {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-darker);
    padding: 48px 24px;
    text-align: center;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.tagline {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.scroll-reveal {
    opacity: 1;
    transform: none;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Viewports */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 64px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-card:last-child {
        grid-column: span 2;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #port-card-1, #port-card-2, #port-card-3, #port-card-4, #port-card-5 {
        grid-column: span 1;
    }
    
    .gacha-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
}

/* Mobile Viewports */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .section-container {
        padding: 64px 20px;
    }
    
    /* Header Mobile Toggle */
    .mobile-toggle {
        display: block;
        z-index: 999;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-card);
        border-left: 1px solid var(--color-border);
        padding: 100px 40px;
        transition: var(--transition-smooth);
        z-index: 950;
    }
    
    .nav-menu.open {
        right: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
    }
    
    .hero-actions a {
        width: 100%;
    }

    .hero-section {
        min-height: auto;
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 88px;
    }

    .hero-bg-overlay {
        background-color: rgba(11, 9, 8, 0.34);
    }

    .status-badge {
        background: rgba(11, 9, 8, 0.64);
        border-color: rgba(var(--color-primary-rgb), 0.32);
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
        letter-spacing: 0;
        text-wrap: balance;
    }

    .hero-subtitle {
        color: var(--color-text-primary);
        max-width: 32rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card:last-child {
        grid-column: span 1;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    #port-card-1, #port-card-2, #port-card-3, #port-card-4, #port-card-5 {
        grid-column: span 1;
    }
    
    .gacha-machine-panel, .gacha-recipe-card {
        padding: 24px;
    }
    
    .receipt-card {
        padding: 24px;
        width: 100%;
        min-width: 0;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid > * {
        min-width: 0;
    }

    .receipt-row,
    .calc-row {
        min-width: 0;
    }

    .item-name {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dots-spacer {
        min-width: 12px;
    }
    
    .coffee-brewer-widget {
        padding: 24px;
    }
    
    .image-wrapper img {
        height: 400px;
    }
}

/* ==========================================================================
   RESUME TIMELINE & SKILLS GRID STYLES
   ========================================================================== */
.resume-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--color-border);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid var(--color-bg-card);
    box-shadow: 0 0 0 2px var(--color-primary);
    transition: var(--transition-smooth);
}

.timeline-item:hover::before {
    background-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-header h5 {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 600;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.timeline-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    list-style-type: disc;
}

.timeline-bullets li {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
}

.resume-section-title {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 40px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

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

.skill-category {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    transition: var(--transition-smooth);
}

.skill-category:hover {
    border-color: rgba(var(--color-primary-rgb), 0.4);
    background: rgba(var(--color-primary-rgb), 0.02);
}

.skill-category strong {
    color: var(--color-primary);
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-category p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Responsive adjustment for skills grid */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   COFFEE GACHA WIDGET STYLES
   ========================================================================== */
/* ==========================================================================
   PORTFOLIO CASE STUDY SUBPAGE STYLES
   ========================================================================== */
.case-study-body {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
}

.case-study-header {
    padding: 140px 0 60px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.case-study-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.case-study-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px 32px;
}

.meta-item h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-weight: 700;
}

.meta-item p {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.case-study-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.case-study-section {
    margin-bottom: 60px;
}

.case-study-section h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.case-study-section p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
}

.case-study-section ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.case-study-section li {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.case-study-section li strong {
    color: var(--color-text-primary);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    margin-bottom: 32px;
}

.btn-back-home:hover {
    color: var(--color-primary);
    transform: translateX(-6px);
}

.btn-back-home i {
    transition: var(--transition-smooth);
}

.collab-highlight {
    background: rgba(var(--color-primary-rgb), 0.04);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: 24px 32px;
    margin: 32px 0;
}

.collab-highlight h4 {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.collab-highlight p {
    margin-bottom: 0;
    font-style: italic;
}

.case-study-visual {
    margin: 48px 0;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--color-bg-darker);
}

.case-study-visual img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.case-study-visual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 48px 0;
}

.case-study-visual-container .case-study-visual {
    margin: 0;
}

.case-study-footer {
    padding: 60px 0 120px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.case-study-footer h4 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

@media screen and (max-width: 768px) {
    .case-study-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .case-study-visual-container {
        grid-template-columns: 1fr;
    }
    
    .case-study-section h3 {
        font-size: 1.45rem;
    }
}

@media screen and (max-width: 480px) {
    .header-container {
        padding: 0 20px;
    }

    .section-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio-card,
    .about-card,
    .gacha-machine-panel,
    .gacha-recipe-card,
    .info-card {
        border-radius: var(--border-radius-md);
    }

    .info-card {
        align-items: flex-start;
    }

    .info-icon {
        flex-shrink: 0;
    }

    .portfolio-card,
    .about-card {
        padding: 24px;
    }

    .case-study-content {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .case-study-meta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .collab-highlight {
        padding: 20px;
    }

    .receipt-card {
        padding: 20px;
    }

    .receipt-shop-name {
        font-size: 1.12rem;
        overflow-wrap: anywhere;
    }

    .receipt-address,
    .receipt-date,
    .receipt-cashier,
    .receipt-row,
    .receipt-calculations {
        font-size: 0.75rem;
    }

    .barcode {
        font-size: 1.05rem;
        letter-spacing: 1px;
        overflow-wrap: anywhere;
    }
}

/* ==========================================================================
   LATTE ART GALLERY STYLES (Cortado Tab)
   ========================================================================== */
.latte-art-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.gallery-card {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--color-bg-darker);
    transition: var(--transition-bounce);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    display: block;
    padding: 10px 12px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* Responsive Gacha/Gallery */
@media screen and (max-width: 480px) {
    .latte-art-gallery {
        grid-template-columns: 1fr;
    }
}
