/* 
 * 福古贸易（香港）有限公司 - 主样式表
 * FG Trade (Hong Kong) Co., Limited
 */

/* ===== 基础样式 ===== */
:root {
    /* 主色调 */
    --primary-color: #0056b3;
    --secondary-color: #00a0e9;
    --accent-color: #ff6b00;
    
    /* 中性色 */
    --dark-color: #333333;
    --text-color: #555555;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    /* 功能色 */
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* 字体 */
    --body-font: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --heading-font: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    
    /* 尺寸 */
    --container-width: 1200px;
    --header-height: 80px;
    --footer-height: 300px;
    
    /* 过渡 */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

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

ul, ol {
    list-style: none;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #0089c7;
    color: var(--white-color);
}

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

.btn-light:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

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

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

/* ===== 标题样式 ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin-bottom: 15px;
}

/* ===== 辅助类 ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.bg-light {
    background-color: var(--light-color);
}

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

.bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6 {
    color: var(--white-color);
}

/* ===== 头部样式 ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
}

#main-nav ul {
    display: flex;
    flex-wrap: nowrap;
}

#main-nav ul li {
    position: relative;
    margin-left: 20px;
}

#main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 30px 0;
    display: block;
    font-size: 15px;
    white-space: nowrap;
}

#main-nav ul li a:hover, #main-nav ul li a.active {
    color: var(--primary-color);
}

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

.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    /* 修改这里的left值可以调整下拉菜单的水平位置，如果菜单宽度增加，可能需要调整此值，例如改为 -40px 或 -50px */
    left: -20px;
    /* 修改这里的width值可以增加下拉菜单的宽度，建议改为 380px 或 400px 或更大，直到能完全显示所有菜单项 */
    width: 840px;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    z-index: 1001;
    padding: 8px 0;
    border-radius: 4px;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0 !important;
}

.submenu li a {
    padding: 12px 25px !important;
    display: block;
    /* 修改这里可以调整菜单项之间的分隔线，如果不需要分隔线可以设置为 none */
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
}

.submenu li:last-child a {
    border-bottom: none;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-switcher {
    display: flex;
    margin-right: 20px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: none;
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

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

.language-switcher select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: var(--white-color);
    font-family: var(--body-font);
    cursor: pointer;
}

#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

/* ===== 英雄区域样式 ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white-color);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--white-color);
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ===== 节区域通用样式 ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== 服务区域样式 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0056b3 0%, #007bff 50%, #17a2b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.4);
}

.service-icon:hover::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.service-icon i {
    font-size: 30px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.service-icon:hover i {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: all var(--transition-speed) ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== 关于我们预览区域样式 ===== */
.about-content {
    padding: 2rem 0;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.company-intro {
    margin-bottom: 3rem;
}

.company-intro .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.business-highlights {
    margin-bottom: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.highlight-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== 解决方案区域样式 ===== */
.solutions-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 30px;
    margin-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.solutions-slider::-webkit-scrollbar {
    height: 8px;
}

.solutions-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.solutions-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.solution-slide {
    flex: 0 0 350px;
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.solution-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.solution-content {
    padding: 20px;
}

.solution-content h3 {
    margin-bottom: 10px;
}

.solution-content p {
    margin-bottom: 20px;
}

/* ===== 案例区域样式 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.case-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    margin-bottom: 10px;
}

.case-content p {
    margin-bottom: 15px;
}

/* ===== 新闻预览区域样式 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content p {
    margin-bottom: 15px;
}

/* ===== 联系我们预览区域样式 ===== */
.contact-preview-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 24px;
    margin-right: 10px;
}

/* ===== FAQ样式 ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-color);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed) ease;
    border-radius: 4px 4px 0 0;
}

.faq-question:hover {
    background-color: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: all var(--transition-speed) ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    display: none;
    background-color: white;
    border-radius: 0 0 4px 4px;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer.show {
    display: block;
    padding: 20px;
}

.faq-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.faq-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Page Styles */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.contact-content {
    margin-left: 15px;
}

.contact-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-section h4 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
    box-sizing: border-box;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Card Styles */
.map-card {
    margin-top: 0;
    max-width: none;
    width: 100%;
}

.map-card h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.map-container {
    position: relative;
    width: 1140px;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Office Info Styles */
.office-info {
    margin-top: 15px;
}

.office-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.office-info p i {
    margin-right: 10px;
    margin-top: 2px;
    color: var(--primary-color);
    width: 16px;
    flex-shrink: 0;
}

/* ===== 页脚样式 ===== */
/* ===== 主要内容区域 ===== */
main {
    flex: 1;
}

/* ===== 页脚样式 ===== */
#footer {
    background-color: #222;
    color: #aaa;
    margin-top: auto;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget h3 {
    color: var(--white-color);
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-widget .contact-info {
    display: block;
    margin: 0;
}

.footer-widget .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-widget .contact-info li i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #aaa;
}

.footer-bottom-links a:hover {
    color: var(--white-color);
}

/* ===== 回到顶部按钮 ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

#back-to-top.active {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
}

/* ===== 响应式样式 ===== */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    :root {
        --container-width: 960px;
    }
    
    #main-nav ul li {
        margin-left: 15px;
    }
    
    #main-nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
        --header-height: 70px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content h2 {
        font-size: 30px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .services-grid, .cases-grid, .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 540px;
        --header-height: 60px;
    }
    
    #menu-toggle {
        display: flex;
    }
    
    #main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white-color);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all var(--transition-speed) ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    #main-nav.active {
        left: 0;
    }
    
    #main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    #main-nav ul li {
        margin: 0;
        margin-bottom: 15px;
    }
    
    #main-nav ul li a {
        padding: 10px 0;
        font-size: 16px;
        white-space: normal;
    }
    
    #main-nav ul li a.active::after {
        bottom: 5px;
    }
    
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .dropdown.active .submenu {
        display: block;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 15px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    :root {
        --container-width: 100%;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}