:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(25, 25, 35, 0.6);
    --primary: #6366f1; /* Indigo accent */
    --primary-hover: #4f46e5;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Steps visibility */
.step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards ease-out;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; background: linear-gradient(to right, #a5b4fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 25px; text-align: center; }
p, .subtitle { color: var(--text-muted); line-height: 1.6; }
.subtitle { text-align: center; margin-bottom: 20px; font-size: 0.9rem; }

/* Buttons */
button {
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }

.btn-success { background: var(--success); color: white; width: 100%; margin-top: 10px; }
.btn-success:hover { filter: brightness(1.1); }

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.hidden { display: none !important; }

/* Grid Options */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Portfolio Slider */
.portfolio-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 15px 0;
    margin-bottom: 20px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.portfolio-slider {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}

.portfolio-slider:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    to {
        transform: translateX(calc(-50% - 7.5px)); /* shift half width since we duplicate items */
    }
}

.portfolio-item {
    width: 240px; /* Great size for phones and PCs */
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.portfolio-item img {
    height: 100%;
    width: 100%;
    object-fit: cover; 
    pointer-events: none;
    display: block;
}

/* Specific button layout for portfolio */
.portfolio-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-small-transparent {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.85rem;
    padding: 6px 16px;
    opacity: 0.6;
    transition: all 0.3s;
}

.btn-small-transparent:hover {
    opacity: 1;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    pointer-events: none; /* prevents saving */
}

/* Specific button layout for portfolio */
.portfolio-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-small-transparent {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.85rem;
    padding: 6px 16px;
    opacity: 0.6;
    transition: all 0.3s;
}

.btn-small-transparent:hover {
    opacity: 1;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.option-card p { font-size: 0.8rem; }

/* Form Inputs */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
input[type="date"], select, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 1rem;
}
input[type="date"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Checkboxes */
.checkbox-group { display: flex; flex-direction: column; gap: 12px; }
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.custom-checkbox:hover { border-color: rgba(255, 255, 255, 0.1); }
.custom-checkbox input { margin-right: 15px; transform: scale(1.2); accent-color: var(--primary); }

/* Receipt */
.receipt-header { border-bottom: 1px dashed var(--border-color); padding-bottom: 20px; margin-bottom: 20px; text-align: center; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.95rem; }
.receipt-row.subtext { font-size: 0.85rem; color: var(--text-muted); margin-top: -10px; margin-bottom: 15px; }
.receipt-total { border-top: 1px dashed var(--border-color); padding-top: 20px; margin-top: 20px; font-size: 1.2rem; font-weight: 800; display: flex; justify-content: space-between; }
