@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #121214;
    --bg-card: rgba(26, 26, 28, 0.7);
    --accent: #ffffff; 
    --accent-hover: #e5e7eb;
    --text-main: #f3f4f6;
    --text-muted: #8e8e93;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-accent: linear-gradient(135deg, #ffffff, #a1a1a6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.01) 0px, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-cta {
    background: #ffffff;
    color: #000000;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background-color: var(--accent-hover);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 70px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Header */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Live Production Board */
.production-section {
    padding: 60px 0;
}

.board-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--glass-shadow);
    overflow-x: auto;
}

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

.board-table th {
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

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

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
}

.badge-next { background: rgba(255, 255, 255, 0.05); color: #c8c8c8; border: 1px solid rgba(255, 255, 255, 0.15); }
.badge-progress { background: rgba(255, 255, 255, 0.12); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3); }
.badge-completed { background: #ffffff; color: #000000; border: 1px solid #ffffff; }

/* Progress bar inside table */
.progress-container {
    width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
}

/* Craftsmen Section Slider */
.craftsmen-section {
    padding: 60px 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 15px;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.slider-container::-webkit-scrollbar {
    height: 6px;
}
.slider-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}
.slider-container::-webkit-scrollbar-track {
    background: transparent;
}

.craftsman-card {
    flex: 0 0 160px; /* Small width */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s, border-color 0.3s;
}

.craftsman-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
}

.craftsman-img-wrapper {
    width: 100%;
    height: 180px; /* Small height */
    overflow: hidden;
    position: relative;
    background: #1c1c1e;
}

.craftsman-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.craftsman-card:hover .craftsman-img {
    transform: scale(1.06);
}

.craftsman-info {
    padding: 15px 10px;
}

.craftsman-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.craftsman-role {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--border-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.slider-btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: -15px;
}

.slider-btn.next {
    right: -15px;
}

/* Tracking Search Section */
.tracking-search-section {
    padding: 80px 0;
    text-align: center;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    display: flex;
    align-items: center;
    box-shadow: var(--glass-shadow);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 16px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: #ffffff;
    border: none;
    color: #000000;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-box button:hover {
    opacity: 0.9;
}

/* Modal Popup style */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 8% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 650px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 24px;
}

.tracking-detail {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.tracking-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #1c1c1e;
}

.tracking-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracking-info-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 16px;
    font-weight: 600;
}

/* Stepper progress */
.stepper-container {
    padding: 20px 0;
}

.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}

.stepper-progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 3px;
    background: #ffffff;
    z-index: 2;
    transition: width 0.5s ease;
}

.step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid rgba(255,255,255,0.15);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.step-node.active {
    border-color: #ffffff;
    color: var(--text-main);
}

.step-node.completed {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.step-labels {
    display: flex;
    justify-content: space-between;
}

.step-label {
    width: 90px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.step-label.active {
    color: #ffffff;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .tracking-detail {
        flex-direction: column;
        align-items: center;
    }
    .tracking-img-wrapper {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }
    .nav-links {
        display: none;
    }
}
