/* =============================================
   로고스소프트(Logos Soft) - MES 전문 기업
   ============================================= */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Segoe UI', 'Malgun Gothic', sans-serif;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

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

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 800;
}

.section-title span {
    color: #1a73e8;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon i {
    font-size: 1.6rem;
    color: #1a73e8;
}

.logo span {
    color: #1a73e8;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a73e8;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #1e88e5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 75px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    color: #fff;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #90caf9;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content h1 span {
    color: #ffd700;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #ffd700;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
    background: #fff;
    color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-image {
    flex: 1;
    height: 400px;
    position: relative;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    top: 30px;
    left: 40px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 215, 0, 0.12);
    bottom: 60px;
    right: 30px;
    animation-delay: -2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.06);
    top: 50%;
    left: 60%;
    animation-delay: -4s;
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-illustration i {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

.hero-illustration i:nth-child(2) { animation-delay: -0.8s; }
.hero-illustration i:nth-child(3) { animation-delay: -1.6s; }
.hero-illustration i:nth-child(4) { animation-delay: -2.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.4; }
}

/* ===== About ===== */
.about {
    background: #f8f9fa;
}

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

.about-card {
    background: #fff;
    padding: 45px 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(26, 115, 232, 0.12);
    border-color: #1a73e8;
}

.about-card i {
    font-size: 2.8rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1a1a2e;
    font-weight: 700;
}

.about-card p {
    color: #666;
    line-height: 1.7;
}

/* ===== Services ===== */
.services {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #1a73e8;
    box-shadow: 0 20px 50px rgba(26, 115, 232, 0.12);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    border-radius: 50%;
    transform: rotateY(180deg);
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #1a1a2e;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Features ===== */
.features {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    border-color: #1a73e8;
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.1);
}

.feature-icon {
    min-width: 55px;
    width: 55px;
    height: 55px;
    background: #e8f0fe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.4rem;
    color: #1a73e8;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.feature-text p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== Process ===== */
.process {
    background: #fff;
}

.process-steps {
    max-width: 850px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.step:last-child {
    border-bottom: none;
}

.step:hover {
    padding-left: 15px;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a73e8;
    opacity: 0.3;
    min-width: 55px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.step-content p {
    color: #888;
    font-size: 0.92rem;
}

.step-arrow {
    color: #1a73e8;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.step:hover .step-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== Counter ===== */
.counter-section {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    padding: 80px 0;
}

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

.counter-item {
    color: #fff;
}

.counter-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.counter-number {
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.counter-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Testimonials ===== */
.testimonials {
    background: #f8f9fa;
}

.testimonial-slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    background: #fff;
    padding: 45px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-card i.fa-quote-left {
    font-size: 2rem;
    color: #1a73e8;
    opacity: 0.2;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card h4 {
    color: #1a1a2e;
    margin-bottom: 5px;
    font-weight: 700;
}

.testimonial-card span {
    color: #999;
    font-size: 0.9rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1a73e8;
    transform: scale(1.3);
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(135deg, #f8f9fa, #e8f0fe);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.info-item i {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-item h4 {
    margin-bottom: 5px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1rem;
}

.info-item p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    outline: none;
    background: #fafafa;
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: #1a73e8;
    color: #fff;
    padding: 15px 30px;
    font-size: 1rem;
    width: fit-content;
    align-self: flex-end;
}

.submit-btn:hover {
    background: #0d47a1;
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    background: #0d1117;
    color: #ccc;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    font-size: 1.4rem;
    color: #1a73e8;
}

.footer-brand h3 span {
    color: #1a73e8;
}

.footer-brand p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: #1a73e8;
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 700;
}

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

.footer-links ul li a {
    color: #999;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: #1a73e8;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #999;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact p i {
    color: #1a73e8;
    width: 16px;
    margin-top: 3px;
}

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

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

#clock {
    color: #1a73e8;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ===== Scroll to Top ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(26, 115, 232, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #0d47a1;
    transform: translateY(-3px);
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        height: 250px;
        width: 100%;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: #fff;
        text-align: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    .nav-menu.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    section {
        padding: 60px 0;
    }
    .step {
        flex-wrap: wrap;
    }
    .step-arrow {
        display: none;
    }
    .contact-form {
        padding: 20px;
    }
}