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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f2f2f2;
    color: #0c0c0c;
    font-size: 16px;
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 180px;
}

/* Light mode: show black logo */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

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

.nav a {
    color: #0c0c0c;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: color 0.2s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0c0c0c;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 25px;
}

.theme-toggle,
.lang-toggle {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 20px;
    padding: 7px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before,
.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before,
.lang-toggle:hover::before {
    opacity: 1;
}

.theme-toggle {
    font-size: 15px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.lang-toggle {
    min-width: 48px;
    text-align: center;
    text-transform: uppercase;
    height: 36px;
}

.theme-toggle:hover,
.lang-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active,
.lang-toggle:active {
    transform: translateY(0) scale(0.98);
}

/* Dark Mode */
body.dark-mode {
    background: #0c0c0c;
    color: #f2f2f2;
}

body.dark-mode .header {
    border-bottom-color: #333;
}

body.dark-mode .nav a {
    color: #f2f2f2;
}

body.dark-mode .nav a::after {
    background-color: #f2f2f2;
}

/* Dark mode: show white logo */
body.dark-mode .logo-dark {
    display: block;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .theme-toggle,
body.dark-mode .lang-toggle {
    color: #ffffff;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle::before,
body.dark-mode .lang-toggle::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .lang-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .theme-toggle:active,
body.dark-mode .lang-toggle:active {
    transform: translateY(0) scale(0.98);
}

body.dark-mode .hero p,
body.dark-mode .case-item p,
body.dark-mode .blog-item .date {
    color: #999;
}

body.dark-mode .case-img {
    background: #1a1a1a;
}

body.dark-mode .case-img::after {
    background: #f2f2f2;
    color: #0c0c0c;
}

/* Dark mode footer: lighter background (opposite of light mode) */
body.dark-mode .footer {
    background: #f2f2f2;
    color: #0c0c0c;
}

body.dark-mode .footer-email {
    color: #0c0c0c;
}

body.dark-mode .footer-email::after {
    background-color: #0c0c0c;
}

body.dark-mode .footer-office p,
body.dark-mode .footer-bottom,
body.dark-mode .footer-links a {
    color: #666666;
}

body.dark-mode .footer-links a:hover {
    color: #0c0c0c;
}

body.dark-mode .footer-bottom {
    border-top-color: #d0d0d0;
}

body.dark-mode .footer-copyright {
    color: #666666;
}

/* Dark mode: footer is light, so show BLACK icon */
body.dark-mode .footer-logo-dark {
    display: none;
}

body.dark-mode .footer-logo-light {
    display: block;
}

/* Hero */
.hero {
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    max-width: 600px;
}

.hero p {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    max-width: 500px;
}

/* Showcase */
.showcase {
    padding: 40px 0 60px;
}

.showcase-video {
    width: 100%;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.showcase-video img,
.showcase-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.showcase-video video {
    object-fit: cover;
}

.showcase-video:hover {
    transform: scale(1.002);
    transition: transform 0.3s ease;
}

/* Cases Grid */
.cases {
    padding: 20px 0 60px;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.case-item {
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.case-item:hover {
    transform: translateY(-4px);
}

.case-img {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e5e5;
    position: relative;
}

.case-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.case-img::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 400;
    color: #0c0c0c;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
    line-height: 70px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-item:hover .case-img::before {
    opacity: 1;
}

.case-item:hover .case-img::after {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(5px);
}

.case-img img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform, filter;
    position: relative;
    z-index: 0;
}

.case-item:hover .case-img img {
    transform: scale(1.05);
    filter: blur(2px) brightness(0.8);
}

.case-item h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.case-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.case-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.case-item:hover .case-services {
    max-height: 120px;
    opacity: 1;
}

.service-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #0c0c0c;
    color: #f2f2f2;
    white-space: nowrap;
}

body.dark-mode .service-tag {
    background: #f2f2f2;
    color: #0c0c0c;
}

.blog-item {
    padding: 40px 0;
}

.blog-item .date {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.blog-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    background: #0c0c0c;
    color: #f2f2f2;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    padding-bottom: 0;
}

.footer-email-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-email {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    transition: color 0.2s;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #f2f2f2;
    transition: width 0.3s ease;
}

.footer-email:hover::after {
    width: 100%;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.footer-logo-link:hover {
    transform: scale(1.15);
}

.footer-logo-link img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

/* Light mode: footer is dark, so show WHITE icon */
.footer-logo-dark {
    display: block;
}

.footer-logo-light {
    display: none;
}

.footer-brief-btn:hover {
    transform: scale(1.05);
}

.footer-office {
    margin-bottom: 0;
    max-width: 400px;
}

.footer-office h4 {
    font-size: 19.5px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.footer-office p {
    font-size: 14px;
    color: #999;
    margin-bottom: 3px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #999;
}

.footer-copyright {
    color: #999;
    font-size: 13px;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: #f2f2f2;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .showcase-video {
        max-height: 400px;
        aspect-ratio: 16 / 9;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        padding: 40px 0 25px;
        margin-top: 60px;
    }

    .footer-email {
        font-size: 32px;
    }

    .footer-email-section {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 35px;
    }

    .footer-content {
        padding-bottom: 0;
    }

    .footer-office h4 {
        font-size: 18px;
        font-weight: 700;
    }

    .footer-office p {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 18px;
        margin-top: 35px;
        font-size: 11px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .footer-logo-link img {
        width: 85px;
        height: 85px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .header-controls {
        margin-left: 0;
        gap: 6px;
    }

    .logo img {
        height: 26px;
        max-width: 140px;
    }

    .theme-toggle,
    .lang-toggle {
        padding: 6px 12px;
        font-size: 11px;
        height: 32px;
    }

    .theme-toggle {
        font-size: 13px;
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .lang-toggle {
        min-width: 42px;
    }
}
