/* ========================================
   DOOSAY D1 Theme - Main Stylesheet
   Industrial Style Business Theme
   ======================================== */

/* [1. Design Tokens - Industrial Theme] */
:root {
    --color-accent: #FFD700;     /* 강렬한 인더스트리얼 옐로우 */
    --color-black: #111111;      /* 딥 블랙 */
    --color-dark-gray: #333333;
    --color-light-gray: #f2f2f2;
    --bg-white: #ffffff;
    
    --header-h: 90px;
    --container-w: 1320px;
    --border-bold: 3px solid var(--color-black); /* 굵은 테두리 */
}

/* [2. Reset & Base] */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* [3. Layout Utils] */
.container {
    width: 90%;
    max-width: var(--container-w);
    margin: 0 auto;
}

section {
    padding: 120px 0;
}

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

/* [4. Section Headers] */
.sec-header {
    margin-bottom: 60px;
    position: relative;
}

.sec-title {
    font-size: 3rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.sec-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 80px;
    height: 20px;
    background: var(--color-accent);
    z-index: -1;
    opacity: 0.7;
}

.sec-desc {
    font-size: 1.1rem;
    color: var(--color-dark-gray);
    margin-top: 20px;
    max-width: 600px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* [4.5. Sub Visual for Subpages] */
.sub-visual {
    margin-top: 0;
    height: 350px;
    background: #111111;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sv-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.sv-title span {
    color: var(--color-accent);
}

.sv-desc {
    font-size: 1.1rem;
    opacity: 0.8;
    z-index: 1;
    font-weight: 400;
}

.sub-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* [5. Header - Bold & Structured] */
#header {
    width: 100%;
    height: var(--header-h);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 2px solid var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-w);
}

/* [6. Logo: Fade Effect (Images)] */
.logo-wrap {
    width: 220px;
    height: 60px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo-wrap .logo-img {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: 55px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    opacity: 0;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.logo-wrap .logo-img.logo-en {
    animation-name: fadeLoop1;
}

.logo-wrap .logo-img.logo-kr {
    animation-name: fadeLoop2;
}

@keyframes fadeLoop1 {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeLoop2 {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

/* [7. Navigation - Bold Underline] */
.nav-desk {
    display: flex;
    gap: 60px;
}

.nav-link {
    font-size: 21px;
    font-weight: 700;
    padding: 33px 0;
    cursor: pointer;
    position: relative;
    font-family: 'Montserrat';
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 8px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* [8. Mega Menu - Industrial Style] */

/* [8. Mega Menu - Industrial Style] */
.mega-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--color-black);
    color: #fff;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

#header:hover .mega-menu {
    height: 350px;
    border-bottom: 5px solid var(--color-accent);
}

.mega-inner {
    width: var(--container-w);
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
}

.mega-intro {
    width: 30%;
    border-right: 1px solid #444;
    padding-right: 40px;
}

.mega-intro h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 24px;
}

.mega-lists {
    width: 65%;
    display: flex;
    justify-content: space-around;
}

.mega-col h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
}

.mega-col li {
    margin-bottom: 15px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 16px;
}

.mega-col li a {
    color: #aaa;
    text-decoration: none;
}

.mega-col li:hover,
.mega-col li:hover a {
    color: var(--color-accent);
    padding-left: 5px;
}

/* [9. Mobile Menu Toggle Button] */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-black);
    transition: all 0.3s ease;
}

/* [10. Mobile Menu] */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-black);
    z-index: 9999;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #333;
}

.mobile-logo {
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.mobile-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #333;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    color: #fff;
    font-weight: 700;
    font-family: 'Montserrat';
    font-size: 16px;
    cursor: pointer;
}

.mobile-nav-link i {
    transition: transform 0.3s;
}

.mobile-nav-item.open .mobile-nav-link i {
    transform: rotate(180deg);
}

.mobile-submenu {
    background: #1a1a1a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item.open .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 30px 12px 50px;
    color: #aaa;
    font-size: 14px;
}

.mobile-submenu li a:hover {
    color: var(--color-accent);
}

/* ========================================
   MAIN SECTIONS
   ======================================== */

/* [11. Hero Slider] */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #000;
    margin-top: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-media video,
.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) brightness(0.6);
}

.slide-txt {
    color: #fff;
    z-index: 10;
    position: relative;
    width: var(--container-w);
    margin: 0 auto;
    padding-left: 5%;
    border-left: 5px solid var(--color-accent);
}

.slide-txt h2 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.slide-txt span {
    color: var(--color-accent);
}

.slide-txt p {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    font-weight: 400;
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 5%;
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--color-accent);
    width: 30px;
}

/* [12. Intro Section] */
.sec-intro {
    padding: 120px 0;
}

.intro-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-title h3 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.intro-title span {
    background: var(--color-accent);
    padding: 0 10px;
    color: var(--color-black);
}

.intro-desc p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--color-dark-gray);
}

.btn-black {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-black);
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--color-black);
    margin-top: 20px;
}

.btn-black:hover {
    background: transparent;
    color: var(--color-black);
}

/* [13. Services Section] */
.sec-services {
    padding: 120px 0;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: var(--border-bold);
}

.svc-item {
    padding: 50px;
    border-right: var(--border-bold);
    border-bottom: var(--border-bold);
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
}

.svc-item:nth-child(3n) {
    border-right: none;
}

.svc-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.svc-item:hover {
    background: var(--color-accent);
}

.svc-num {
    font-family: 'Montserrat';
    font-size: 1.5rem;
    font-weight: 900;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
    transition: color 0.3s ease;
}

.svc-item:hover .svc-num {
    color: var(--color-black);
}

.svc-item h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.svc-item p {
    color: var(--color-dark-gray);
}

/* [14. Statistics Section] */
.sec-stats {
    background: var(--color-black);
    color: #fff;
    padding: 80px 0;
}

.stats-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-box strong {
    font-family: 'Montserrat';
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.stat-box span {
    display: block;
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* [15. Workflow Section] */
.sec-workflow {
    padding: 120px 0;
}

.process-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.process-step {
    position: relative;
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border: var(--border-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-black);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: var(--color-accent);
}

.process-step h5 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--color-dark-gray);
}

/* [16. Portfolio Section] */
.sec-portfolio {
    padding: 120px 0;
}

.port-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.port-item {
    position: relative;
    overflow: hidden;
    border: var(--border-bold);
    aspect-ratio: 1;
    cursor: pointer;
}

.port-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.port-item:hover img {
    transform: scale(1.1);
}

.port-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px 20px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.port-item:hover .port-info {
    transform: translateY(0);
}

.port-info h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.port-info span {
    font-size: 0.9rem;
    color: var(--color-accent);
}

/* [17. Contact CTA Section] */
.sec-contact {
    background: var(--color-black);
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.contact-wrap h2 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.btn-contact {
    display: inline-block;
    padding: 20px 50px;
    border: 3px solid var(--color-accent);
    color: var(--color-accent);
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--color-accent);
    color: var(--color-black);
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
    background: var(--color-black);
    color: #888;
    padding: 80px 0;
}

.ft-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ft-logo {
    font-family: 'Montserrat';
    font-size: 2rem;
    color: #fff;
    font-weight: 900;
    margin-bottom: 20px;
}

.ft-info p {
    margin-bottom: 10px;
}

.ft-biz {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: .88rem;
    flex-wrap: wrap;
}
.ft-biz b { color: #bbb; font-weight: 600; margin-right: 4px; }
.ft-div { color: #444; }
.ft-copy { margin-top: 20px !important; opacity: .5; font-size: .82rem !important; }

.ft-info a:hover {
    color: var(--color-accent);
}

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

.ft-links a:hover {
    color: var(--color-accent);
}

/* [18. Back to Top Button] */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-black);
    color: #fff;
    border: 2px solid var(--color-black);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-black);
    border-color: var(--color-accent);
}

.back-to-top.show {
    display: flex;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --header-h: 70px;
    }

    .sub-visual {
        margin-top: 70px;
    }
    
    .sv-title {
        font-size: 2.5rem;
    }

    .nav-desk {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    #header:hover .mega-menu {
        height: 0;
    }

    .slide-txt h2 {
        font-size: 3.5rem;
    }

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

    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-item:nth-child(2n) {
        border-right: none;
    }

    .stats-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .port-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .sec-title {
        font-size: 2rem;
    }

    .sub-visual {
        height: 250px;
    }
    
    .sv-title {
        font-size: 2rem;
    }
    
    .sv-desc {
        font-size: 0.95rem;
    }

    .slide-txt h2 {
        font-size: 2.5rem;
    }

    .slide-txt p {
        font-size: 1.1rem;
    }

    .intro-title h3 {
        font-size: 2rem;
    }

    .svc-grid {
        grid-template-columns: 1fr;
    }

    .svc-item {
        border-right: none;
    }

    .svc-item:nth-last-child(1) {
        border-bottom: none;
    }

    .stats-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-wrap {
        grid-template-columns: 1fr;
    }

    .port-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrap h2 {
        font-size: 2.5rem;
    }

    .ft-wrap {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
    
    .ft-info {
        text-align: center;
    }
    
    .ft-logo {
        font-size: 1.5rem !important;
    }
    
    .ft-info p {
        font-size: 0.8rem;
    }
    
    .ft-links {
        justify-content: center;
        gap: 15px;
    }
    
    .ft-links a {
        font-size: 0.8rem;
    }
}

/* Footer 반응형 - 소형 모바일 */
@media (max-width: 480px) {
    #footer {
        padding: 40px 0;
    }
    
    .ft-logo {
        font-size: 1.3rem !important;
    }
    
    .ft-info p {
        font-size: 0.75rem;
    }
    
    .ft-links {
        gap: 10px;
    }
    
    .ft-links a {
        font-size: 0.75rem;
    }
}
