/* 
  Shang Bo Industrial Co., Ltd. - Main Stylesheet
  Based on design requirements: Professional, Clean, Tech-focused
*/

:root {
    --primary-color: #0056b3;
    --primary-dark: #003d80;
    --secondary-color: #007bff;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.brand-group {
    display: flex;
    align-items: center;
    gap: 21px;
    min-width: 0;
}

.brand-name {
    color: #25364A;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1;
    white-space: nowrap;
}

header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 70px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    display: block;
    transform: scale(1.55);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.6);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section (Customized for index.html) */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #002d62; /* Match footer color to prevent gaps */
    position: relative;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

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

.btn-outline:hover {
    background-color: rgba(0, 86, 179, 0.05);
    transform: translateY(-2px);
}

/* Footer */
footer {
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        min-height: 44px;
        padding: 10px 24px;
        line-height: 24px;
    }

    .brand-group {
        gap: 14px;
    }

    .brand-name {
        font-size: 19px;
        letter-spacing: 0.08em;
    }

    .logo img {
        height: 70px;
        max-width: 70px;
        margin: 0;
        transform: scale(1.35);
    }

    .page-header {
        padding: 88px 0 48px !important;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-bottom: 50px;
    }
}

/* Page Sections Background */
.page-header {
    background-color: var(--bg-light);
    padding: 120px 0 60px;
    text-align: center;
}

.about-content, .services-section, .contact-wrapper {
    background-color: var(--white);
    padding: 80px 0;
}
