/* css/style.css */
:root {
    --bg-dark: #050505;
    --bg-card: #14161a;
    --bg-card-hover: #1e2229;
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --primary-glow: rgba(239, 68, 68, 0.4);
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #2a2a2a;
    --font-main: 'Pretendard', sans-serif;
    --logo-width: 300px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

.mt-4 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.btn-primary-small {
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* hero-overlay is no longer needed since gradient is in inline style, but kept for fallback/safety */
.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 204, 0, 0.5);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-title .highlight {
    color: #fff;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.hero-keywords span {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--primary-glow);
    border: none;
    cursor: pointer;
}

.btn-large {
    font-size: 22px;
    padding: 18px 45px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

/* ================= TRUST SECTION ================= */
.trust-section {
    padding: 80px 0 40px;
    background: var(--bg-dark);
}

.trust-card {
    background: #111520;
    border-radius: 16px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #1f2937;
}

.trust-text {
    flex: 1;
}

.trust-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.trust-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.trust-features {
    display: flex;
    gap: 20px;
    flex: 1.2;
    justify-content: flex-end;
}

.trust-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3748;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    width: 140px;
    transition: all 0.3s ease;
    cursor: default;
}

.trust-item:hover {
    transform: translateY(-8px);
    border-color: #f59e0b;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: #f59e0b;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.trust-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.trust-item:hover h3 {
    color: #f59e0b;
}

/* ================= PARTNERS ================= */
.partners-section {
    padding: 40px 0 80px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.partners-title {
    text-align: center;
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 600;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.logo-track {
    display: flex;
    width: calc(var(--logo-width) * 6);
    animation: scroll 20s linear infinite;
}

.logo-slide {
    width: var(--logo-width);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-slide img {
    max-height: 50px;
    opacity: 0.8;
    transition: all 0.3s;
}

.logo-slide img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(var(--logo-width) * -3));
    }
}

/* ================= MEDIA SECTION (GRID) ================= */
.media-section {
    padding: 100px 0;
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
}

.section-label {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 50px;
}

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

.media-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.media-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.media-video {
    position: relative;
    width: 100%;
    height: 220px;
}

.media-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.media-card:hover .media-video img {
    opacity: 1;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--primary-glow);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.media-text {
    padding: 25px;
}

.media-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fca5a5;
    margin-bottom: 12px;
    line-height: 1.4;
}

.media-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ================= SERVICES BANNER ================= */
.services-banner {
    background: var(--primary);
    padding: 80px 0;
    color: #fff;
}

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

.service-col h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.service-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.service-col p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.btn-white-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

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

/* ================= ROADMAP SECTION ================= */
.roadmap-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 120px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 25px;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ================= CONTACT FORM SECTION ================= */
.contact-section {
    padding: 120px 0;
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: flex;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-methods {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.method-item {
    text-align: center;
}

.method-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 15px auto;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.method-text h4 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.method-text span {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.contact-note {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.contact-form-wrapper {
    flex: 1.5;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.required {
    color: var(--primary);
}

.inquiry-form input[type="text"],
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.phone-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-inputs input {
    text-align: center;
}

.file-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload input[type="file"] {
    display: none;
}

.file-btn {
    background: #1a1a1a;
    border: 1px dashed #444;
    color: #a3a3a3;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.file-btn:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(239, 68, 68, 0.05);
}

.submit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.kakao-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fee500;
    color: #191919;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kakao-btn:hover {
    background: #fada0a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 229, 0, 0.3);
}

.kakao-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: -5px;
    line-height: 1.5;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    background: #000;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

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

.footer-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.footer-copyright {
    color: #666;
    font-size: 14px;
}

/* ================= 4, 6, 9 HTML CSS INTEGRATIONS ================= */
/* FROM 4.HTML */
.trust-promise-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    font-family: 'Pretendard', sans-serif;
    color: #fff;
}

.anti-subcontract-banner {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 5px solid #ef4444;
    padding: 18px 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: -0.5px;
}

.promise-header {
    text-align: center;
    margin-bottom: 50px;
}

.promise-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #fff;
}

.promise-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.promise-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #1e2a38;
    transition: transform 0.3s ease;
}

.promise-card:hover {
    transform: translateY(-5px);
    border-top-color: #ef4444;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    word-break: keep-all;
}

/* FROM 6.HTML */
.kims-service-section {
    background-color: #111827;
    padding: 100px 20px;
    font-family: 'Pretendard', sans-serif;
}

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

.kims-service-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.kims-service-subtitle {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 400;
}

.kims-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.kims-service-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.kims-service-card:hover {
    transform: translateY(-8px);
    border-color: #ef4444;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.kims-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.kims-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #d1d5db;
    word-break: keep-all;
}

/* FROM 9.HTML */
.philosophy-section {
    background-color: #0f172a;
    padding: 100px 20px;
    font-family: 'Pretendard', sans-serif;
    text-align: center;
    color: #ffffff;
}

.philosophy-top-text {
    color: #ef4444;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.philosophy-main-title {
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1.5px;
    margin-bottom: 70px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.philosophy-card {
    background: #1e293b;
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #334155;
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    border-top-color: #ef4444;
}

.philosophy-keyword {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
}

.philosophy-keyword::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 4px;
    background-color: #ef4444;
    border-radius: 2px;
}

.philosophy-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    word-break: keep-all;
    margin-top: 20px;
}

/* ================= CEO MESSAGE ================= */
.ceo-section {
    background-color: #0f172a;
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.ceo-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ceo-image {
    flex: 1;
    text-align: center;
}

.ceo-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ceo-content {
    flex: 1.2;
}

.ceo-label {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ceo-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.ceo-desc {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    word-break: keep-all;
}

.ceo-signature {
    margin-top: 40px;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.ceo-signature strong {
    font-weight: 800;
    margin-left: 5px;
    font-size: 22px;
}

/* ================= GALLERY SECTION ================= */
.gallery-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ================= ANIMATIONS ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .trust-card {
        flex-direction: column;
        text-align: center;
    }

    .trust-features {
        justify-content: center;
    }

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

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

    .contact-container {
        flex-direction: column;
    }

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

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

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

    .ceo-container {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 768px) {
    :root {
        --logo-width: 150px;
    }

    /* Section paddings */
    .trust-section {
        padding: 60px 0 30px;
    }

    .partners-section {
        padding: 30px 0 60px;
    }

    .media-section {
        padding: 60px 0;
    }

    .services-banner {
        padding: 60px 0;
    }

    .roadmap-section {
        padding: 60px 0;
    }

    .contact-section {
        padding: 60px 0;
    }

    .ceo-section {
        padding: 60px 0;
    }

    .gallery-section {
        padding: 60px 0;
    }

    /* Navigation */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .btn-primary-small {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
        display: flex;
        align-items: center;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.35;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 16px;
        margin-bottom: 20px;
        line-height: 1.4;
        display: inline-flex;
    }

    .hero-keywords {
        gap: 8px;
        margin-bottom: 35px;
    }

    .hero-keywords span {
        font-size: 13px;
        padding: 8px 16px;
    }

    .btn-large {
        font-size: 18px;
        padding: 15px 30px;
        width: 100%;
        justify-content: center;
    }

    /* Trust Section */
    .trust-card {
        padding: 35px 20px;
        gap: 25px;
    }

    .trust-text h2 {
        font-size: 26px;
    }

    .trust-text p {
        font-size: 14px;
    }

    .trust-features {
        width: 100%;
        gap: 10px;
    }

    .trust-item {
        flex: 1;
        min-width: 90px;
        padding: 15px 5px;
    }

    .trust-icon {
        width: 45px;
        height: 45px;
        font-size: 14px;
        margin: 0 auto 8px auto;
    }

    .trust-item h3 {
        font-size: 12px;
    }

    /* Media Section */
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .media-card {
        max-width: 480px;
        margin: 0 auto;
    }

    .media-video {
        height: 180px;
    }

    .media-text {
        padding: 20px;
    }

    .media-text h3 {
        font-size: 18px;
    }

    .media-text p {
        font-size: 14px;
    }

    /* Services Section */
    .services-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-col h3 {
        font-size: 20px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .service-col p {
        font-size: 14px;
    }

    /* Timeline / Roadmap */
    .timeline::before {
        left: 20px;
    }

    .timeline-icon {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .timeline-item {
        padding-left: 55px;
        margin-bottom: 30px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .timeline-content p {
        font-size: 14px;
    }

    /* Promise Section */
    .promise-title {
        font-size: 26px;
    }

    .promise-subtitle {
        font-size: 15px;
    }

    .anti-subcontract-banner {
        font-size: 14px;
        padding: 15px;
        margin-bottom: 30px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .promise-card {
        padding: 25px 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-desc {
        font-size: 14px;
    }

    /* Service Grid from 6.html */
    .kims-service-title {
        font-size: 26px;
    }

    .kims-service-subtitle {
        font-size: 14px;
    }

    .kims-service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kims-service-card {
        padding: 30px 20px;
    }

    .kims-card-title {
        font-size: 20px;
    }

    .kims-card-desc {
        font-size: 14px;
    }

    /* Philosophy Section */
    .philosophy-main-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .philosophy-card {
        padding: 35px 20px;
    }

    .philosophy-keyword {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .philosophy-keyword::after {
        bottom: -6px;
        width: 25px;
        height: 3px;
    }

    .philosophy-desc {
        font-size: 14px;
        margin-top: 15px;
    }

    /* Contact Section */
    .contact-container {
        gap: 40px;
    }

    .contact-methods {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .method-item {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        background: var(--bg-card);
        padding: 15px 20px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .method-icon {
        margin: 0;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .method-text span {
        font-size: 20px;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
        width: 100%;
    }

    .inquiry-form {
        gap: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .inquiry-form input[type="text"],
    .inquiry-form select,
    .inquiry-form textarea {
        padding: 12px;
        font-size: 14px;
    }

    .phone-inputs {
        gap: 8px;
    }

    .submit-btn,
    .kakao-btn {
        padding: 15px;
        font-size: 16px;
    }

    .kakao-desc {
        font-size: 12px;
    }

    /* CEO Section */
    .ceo-container {
        gap: 30px;
    }

    .ceo-title {
        font-size: 28px;
    }

    .ceo-desc {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

    .ceo-signature {
        margin-top: 30px;
        padding-top: 20px;
    }

    .ceo-signature strong {
        font-size: 20px;
    }

    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-overlay span {
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        align-items: center;
    }

    .footer-info h3 {
        font-size: 20px;
    }

    .footer-info p {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo-slide {
        padding: 0 15px;
    }

    .logo-slide img {
        max-height: 35px;
    }
}

/* ================= CUSTOM INTERACTIVE AND MOBILE IMPROVEMENTS ================= */
a.method-item {
    color: inherit;
    text-decoration: none;
    display: block;
}

.method-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.1);
}

.phone-num-display {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 800;
}

.contact-action-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.action-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #cbd5e1;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.phone-inputs input {
    flex: 1;
    min-width: 0;
}

/* PC Version Toggle Button */
.pc-view-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pc-view-btn:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(239, 68, 68, 0.1);
}

.copyright-text {
    color: #666;
    font-size: 14px;
}

/* Floating Call Button */
.mobile-floating-call {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 25px rgba(239, 68, 68, 0.5);
    z-index: 1999;
    transition: all 0.3s ease;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.mobile-floating-call {
    animation: pulse-ring 2s infinite;
}

.mobile-floating-call:hover {
    transform: scale(1.05);
    background-color: var(--primary-dark);
}

/* Media Card Zoom-In/Pan Simulation */
.media-video {
    position: relative;
    overflow: hidden;
}

.media-video img {
    transition: transform 0.5s ease;
}

.media-video.is-moving .play-btn {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

@keyframes cameraPan {
    0% {
        transform: scale(1) translate(0, 0);
    }
    30% {
        transform: scale(1.1) translate(-2%, -1%);
    }
    60% {
        transform: scale(1.15) translate(1%, 2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.media-video.is-moving img {
    animation: cameraPan 3s ease-in-out forwards;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mobile-floating-call {
        display: flex;
    }
}

/* Naver Blog Button Styling */
.blog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #2db400;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    padding: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 180, 0, 0.2);
    margin-top: 15px;
}

.blog-btn:hover {
    background-color: #279e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 180, 0, 0.3);
}