/* ============================================
   DY roboTech - Shared Base Stylesheet
   www.dyrobo.tech
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-tertiary: #E8ECF3;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent: #0066CC;
    --accent-hover: #0052A3;
    --accent-light: #E6F0FF;
    --border: #E0E0E0;
    --success: #00C853;
    --highlight: #FF6600;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Header & Navigation ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo img {
    height: 36px;
    width: 36px;
    display: block;
    margin-right: 12px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--accent);
    background-color: var(--accent-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ---- Page Hero ---- */
.page-hero {
    padding: 120px 20px 80px;
    text-align: center;
    background: var(--bg-secondary);
}

.page-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* ---- Container & Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Feature List ---- */
.feature-list {
    list-style: none;
    margin-top: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: var(--bg-primary);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

td {
    color: var(--text-secondary);
}

/* ---- Image Box ---- */
.img-box {
    width: 100%;
    height: 360px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 30px;
}

.img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: var(--accent);
    color: white;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
}

.btn-back {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    margin-right: 12px;
}

.btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-secondary);
    padding: 60px 40px 30px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ---- Slideshow ---- */
.slideshow {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.slideshow-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.slideshow-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    transition: 0.3s;
    z-index: 2;
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.slide-btn.prev {
    left: 8px;
}

.slide-btn.next {
    right: 8px;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}

.slide-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: 0.3s;
}

.slide-dots .dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}
