/* 
* Infinite Boundary - Advertising Agency Website
* Main Stylesheet
*/

/* ===== VARIABLES ===== */
:root {
    --primary-color: #ff3e6c;
    --secondary-color: #6c63ff;
    --dark-color: #2d2d2d;
    --light-color: #f8f9fa;
    --text-color: #555555;
    --heading-color: #222222;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-line {
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subheading {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: var(--dark-color);
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 28px;
    color: white;
}

.navbar.scrolled .navbar-brand {
    color: var(--dark-color);
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 15px !important;
    margin: 0 5px;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-switcher .lang-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 0 5px !important;
    margin: 0 2px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.language-switcher .lang-btn:hover,
.language-switcher .lang-btn.active {
    opacity: 1;
    color: var(--primary-color) !important;
}

.language-switcher .divider {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 2px;
}

.navbar.scrolled .language-switcher .divider {
    color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1542744173-05336fcc7ad4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 20px;
}

/* ===== ABOUT SECTION ===== */
.about-image {
    position: relative;
}

.img-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.placeholder-image {
    width: 100%;
    height: 350px;
    background-color: #e9e9e9;
    background-image: linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 50%, #f3f3f3 50%, #f3f3f3 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.about-features {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 150px;
    margin-right: 15px;
    margin-bottom: 15px;
    text-align: center;
    padding: 20px 15px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ===== SERVICES SECTION ===== */
.services-row {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
}

.services-row .col-md-4 {
    display: flex;
    margin-bottom: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 62, 108, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 0;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
}

.portfolio-item {
    margin-bottom: 30px;
    display: flex;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: 100%;
}

.portfolio-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    padding: 30px;
    text-align: center;
    overflow-y: auto;
}

.portfolio-box:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    margin-bottom: 10px;
}

.portfolio-overlay p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-description {
    margin-top: 15px;
}

.portfolio-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.portfolio-description .btn-outline-light {
    padding: 6px 15px;
    font-size: 0.8rem;
    border-width: 1px;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    padding-right: 30px;
}

#contact .section-header h2 {
    color: white;
}

#contact .section-subheading {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 15px 20px;
    height: auto;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form textarea.form-control {
    min-height: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 20px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    height: 50px;
}

.newsletter-form .btn {
    height: 50px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

/* Chinese language styles */
html[lang="zh"] body {
    font-family: 'Noto Sans SC', 'Montserrat', sans-serif;
}

html[lang="zh"] h1, 
html[lang="zh"] h2, 
html[lang="zh"] h3, 
html[lang="zh"] h4, 
html[lang="zh"] h5, 
html[lang="zh"] h6 {
    font-family: 'Noto Serif SC', 'Playfair Display', serif;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .navbar {
        background-color: white;
        padding: 15px 0;
    }
    
    .navbar-brand, .nav-link {
        color: var(--dark-color) !important;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .language-switcher .divider {
        color: var(--dark-color);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .contact-info {
        margin-bottom: 50px;
        padding-right: 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 10px 20px;
    }
} 