/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 */
:root {
    --primary-color: #0066CC; /* Apple Blue slightly darker */
    --secondary-color: #5AC8FA; /* Apple Light Blue */
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --background-primary: #ffffff;
    --background-secondary: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

/* 基础排版 */
body {
    font-family: var(--font-main);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
    height: 52px;
}

.nav-container {
    max-width: 1200px; /* 增加宽度以容纳更多内容 */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo a {
    font-size: 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.nav-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    color: var(--text-secondary);
    border-left: 1px solid rgba(0,0,0,0.08);
    padding-left: 18px;
    margin-left: 14px;
    line-height: 1;
}

.contact-row-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.contact-name {
    font-weight: 700;
    color: #1d1d1f;
    font-size: 12px; /* Slightly larger for hierarchy */
}

.contact-phone {
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-feature-settings: "tnum";
}

.contact-tag {
    color: #ffffff;
    font-size: 9px;
    font-weight: 500;
    background: #34C759; /* Solid Apple Green */
    padding: 2px 6px;
    border-radius: 10px; /* Pill shape */
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(52, 199, 89, 0.2);
    text-transform: uppercase;
    transform: translateY(-1px); /* Optical alignment */
}

.contact-row-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #86868b;
    font-weight: 400;
    margin-top: 1px;
}

.contact-row-secondary a {
    color: #6e6e73;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.contact-row-secondary a:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(0, 102, 204, 0.3);
}

.contact-divider {
    color: #e0e0e0;
    font-size: 9px;
    margin: 0 1px;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .nav-contact-info {
        display: none; /* 在小屏幕上隐藏联系方式，避免拥挤 */
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s;
    letter-spacing: -0.01em;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-width: 180px;
    box-shadow: var(--shadow-medium);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1001;
    padding: 8px 0;
    margin-top: 12px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: var(--background-secondary);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0051a3;
    transform: scale(1.02);
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: white;
}

/* 英雄区域 */
.hero {
    min-height: 80vh; /* 减小高度 */
    display: flex;
    align-items: center;
    padding: 80px 20px 40px; /* 减小 padding */
    background: url('../images/hero_banner_new.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* 减小 gap */
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem); /* 进一步缩小最小和推荐字体大小 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    white-space: nowrap; /* 保持强制不换行 */
    max-width: 100%;
    overflow: visible; /* 确保文字可见 */
}

/* 针对非常小的屏幕，如果文字实在太长，允许换行以免溢出屏幕 */
@media (max-width: 600px) {
    .hero-title {
        white-space: normal; /* 允许换行 */
        font-size: 2rem; /* 固定较小字号 */
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); /* 减小字体 */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px; /* 减小 margin */
    font-weight: 400;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px; /* 减小 margin */
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    display: none; /* 隐藏原来的图片区域，因为有了背景图 */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Bento Grid Styles */
.highlights-section {
    padding: 60px 20px 100px;
    background: var(--background-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 10px auto 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-item {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.bento-item:hover {
    transform: scale(1.01);
}

/* Bento Grid Layout Classes */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 500px;
}

.item-wide {
    grid-column: span 2;
}

.item-tall {
    grid-row: span 2;
    justify-content: flex-start;
}

/* Bento Item Styles */
.dark-bg {
    color: white;
}

.dark-bg .bento-content {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    width: 100%;
}

.light-bg {
    background-color: #F5F5F7;
    color: var(--text-primary);
}

.bento-content {
    padding: 30px;
    z-index: 2;
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.bento-item p {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.9;
}

.bento-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bento-image-container img {
    max-width: 80%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.bento-icon {
    font-size: 3rem;
    padding: 30px 30px 0;
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.link-arrow span {
    transition: margin-left 0.2s;
}

.link-arrow:hover span {
    margin-left: 5px;
}

.bento-image-side img {
    transition: transform 0.5s ease;
}
.bento-item:hover .bento-image-side img {
    transform: scale(1.05);
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #F5F5F7;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 22px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: black;
}

/* Responsive Bento */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-large {
        grid-column: span 2;
    }
    .item-tall {
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .item-large, .item-wide, .item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .item-large {
        min-height: 300px;
    }
}

/* New Arrivals Section */
.new-arrivals {
    padding: 80px 20px;
    background: var(--background-secondary);
}

.cta-section {
    padding: 120px 20px;
    text-align: center;
    background: black;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.5rem;
    color: #86868b;
    margin-bottom: 40px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 100px 20px;
    background: #f5f5f7;
}

.advantages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.advantage-card-large {
    position: relative;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: white;
    transition: transform 0.3s ease;
}

.advantage-card-large:hover {
    transform: scale(1.02);
}

.advantage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.advantage-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 90%;
}

.advantages-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-item {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.advantage-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive for Advantages */
@media (max-width: 900px) {
    .advantages-container {
        grid-template-columns: 1fr;
    }
    .advantage-card-large {
        height: 300px;
    }
    .advantages-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .advantages-grid-small {
        grid-template-columns: 1fr;
    }
}

/* 产品展示区域 */
.product-showcase {
    padding: 120px 20px;
    background: black;
    color: white;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #a1a1a6;
}

.feature-list li {
    padding: 12px 0;
    position: relative;
    padding-left: 30px;
    color: #f5f5f7;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* MacBook 预览区域 - 简化为图片展示 */
.macbook-preview {
    padding: 120px 20px;
    background: var(--background-secondary);
    text-align: center;
}

.preview-content {
    max-width: 1000px;
    margin: 0 auto;
}

.preview-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* 页脚 */
.footer {
    background: var(--background-secondary);
    padding: 40px 20px 20px; /* 减小 padding */
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--background-secondary);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-list {
        text-align: left;
        display: inline-block;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* 产品页面样式 */
.product-hero {
    padding: 120px 20px 60px;
    background: var(--background-primary);
    text-align: center;
}

.product-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* 减小最小宽度 */
    gap: 20px; /* 减小 gap */
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 220px; /* 增加高度，确保显示完整 */
    object-fit: contain; /* 改为 contain，防止裁剪 */
    background: white; /* 确保背景统一 */
    padding: 20px; /* 增加内边距，给图片留白 */
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05); /* 悬停时轻微放大 */
}

.product-card-content {
    padding: 25px;
    text-align: center;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    height: 40px;
    overflow: hidden;
}

/* 产品卡片内容 */
.product-info, .product-card-content {
    padding: 20px; /* 减小 padding */
    text-align: left;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs, .product-application {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-link {
    background: white;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .product-link {
    transform: translateY(0);
}

.product-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

.feature-tag {
    display: inline-block;
    background: var(--background-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* 产品列表页头部 */
.products-header {
    padding: 80px 20px 20px; /* 减小 padding */
    background: var(--background-secondary);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* 筛选标签 */
.product-filters {
    padding: 15px 20px;
    background: var(--background-secondary);
    position: sticky;
    top: 52px;
    z-index: 900;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 16px; /* 减小 padding */
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.05);
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary-color);
    color: white;
}

/* 底部 CTA */
.contact-cta {
    padding: 100px 20px;
    text-align: center;
    background: var(--background-primary);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.category-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.category-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-info p {
    color: var(--text-secondary);
}

/* 动画类 */
.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page Styles */

/* About Hero */
.about-hero {
    height: 70vh;
    background: url('../images/office-building.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -52px; /* Pull up behind navbar */
    padding-top: 52px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 20px;
}

.about-hero .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Mission Section */
.mission-section {
    padding: 100px 20px;
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mission-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.mission-values {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
}

.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.mission-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: var(--background-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item span {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Timeline */
.history-section {
    padding: 100px 20px;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-item .content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
}

.timeline-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-secondary);
}

/* Environment Gallery */
.environment-section {
    padding: 100px 20px;
    background: var(--background-secondary);
}

.env-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.env-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.env-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.env-item:hover img {
    transform: scale(1.05);
}

.env-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.env-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Facility Tour */
.facility-tour {
    padding: 100px 20px;
    background: white;
}

.facility-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.facility-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.facility-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.facility-item.item-wide img {
    height: 300px;
}

.facility-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.facility-item:hover .facility-caption {
    transform: translateY(0);
}

/* About CTA */
.about-cta {
    padding: 120px 20px;
    background: black;
    color: white;
    text-align: center;
}

/* Responsive About */
@media (max-width: 768px) {
    .mission-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mission-values {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left::after, .timeline-item.right::after {
        left: 23px;
    }
    
    .env-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .env-item.item-large {
        grid-column: span 1;
        height: 300px;
    }
    
    .env-item {
        height: 250px;
    }
}

/* Contact Page Styles */

/* Contact Hero */
.contact-hero {
    height: 50vh;
    background: url('../images/contact-hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -52px;
    padding-top: 52px;
}

.hero-content-center {
    position: relative;
    z-index: 2;
}

/* Contact Main Layout */
.contact-main {
    padding: 100px 20px;
    background: #fbfbfd;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Left Column: Info Panel */
.contact-info-panel .info-header {
    margin-bottom: 40px;
}

.info-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-cards {
    display: grid;
    gap: 20px;
}

.contact-card-item {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
}

.contact-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--background-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text p, .card-text a {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
    font-weight: 500;
}

.card-text a:hover {
    color: var(--primary-color);
}

.contact-tag {
    display: inline-block;
    font-size: 0.8rem;
    background: #E5F1FB;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

/* Right Column: Form Panel */
.contact-form-panel {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f5f5f7;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #0051a3;
    transform: scale(1.02);
}

.btn-submit .arrow {
    transition: transform 0.3s;
}

.btn-submit:hover .arrow {
    transform: translateX(4px);
}

/* Map Section */
.map-section {
    height: 500px;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    pointer-events: none; /* Allow clicking through to map if needed, but here it's just visual */
}

.map-overlay-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.map-overlay-text p {
    color: var(--text-secondary);
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .modern-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-panel {
        padding: 25px;
    }
}


/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
