/* Pretendard Font Import */
@font-face {
    font-family: 'Pretendard';
    src: url('./font/Pretendard-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./font/Pretendard-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./font/Pretendard-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./font/Pretendard-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('./font/Pretendard-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-weight: 400;
}

/* Header - 히어로 섹션과 조화되면서도 구분되는 중간 톤 블루 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.95) 0%, rgba(91, 155, 213, 0.95) 100%);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(107, 189, 196, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 70, 193, 0.8) 20%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(107, 70, 193, 0.8) 80%, 
        transparent 100%);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 70, 193, 0.5) 25%,
        rgba(91, 155, 213, 0.7) 50%, 
        rgba(107, 70, 193, 0.5) 75%,
        transparent 100%);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.98) 0%, rgba(91, 155, 213, 0.98) 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(107, 189, 196, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.header.scrolled::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 70, 193, 1) 20%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(107, 70, 193, 1) 80%, 
        transparent 100%);
}

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

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

.logo img {
    height: 100%;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

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

/* Hero Section */
.hero {
    height: 92vh;
    background: linear-gradient(135deg, #367dc1 0%, #6bbdc4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.03) 49%, rgba(255,255,255,0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%);
    background-size: 80px 80px, 120px 120px, 60px 60px, 100px 100px, 40px 40px, 40px 40px;
    animation: techFloat 15s ease-in-out infinite;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="circuit" width="100" height="100" patternUnits="userSpaceOnUse"><g stroke="rgba(255,255,255,0.1)" stroke-width="0.5" fill="none"><path d="M20 20h60v20h-20v20h-20v20h-20z"/><path d="M80 40h20v40h-40v-20"/><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.15)"/><circle cx="70" cy="50" r="1.5" fill="rgba(255,255,255,0.12)"/><circle cx="50" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><rect x="15" y="75" width="8" height="8" fill="none" stroke="rgba(255,255,255,0.08)"/><rect x="75" y="15" width="6" height="6" fill="none" stroke="rgba(255,255,255,0.08)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)"/></svg>');
    animation: circuitFlow 20s linear infinite;
    opacity: 0.4;
}

@keyframes techFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-10px) translateX(5px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-5px) translateX(-3px);
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-15px) translateX(2px);
        opacity: 0.9;
    }
}

@keyframes circuitFlow {
    0% { 
        transform: translateX(-10px) translateY(-10px);
    }
    100% { 
        transform: translateX(10px) translateY(10px);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 3;
    position: relative;
    margin-top: -7rem;
    padding: 0 1rem;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%, 
        transparent 45%, 
        rgba(107, 189, 196, 0.3) 50%, 
        transparent 55%, 
        transparent 100%
    );
    animation: scanMove 8s ease-in-out infinite;
    z-index: 2;
    opacity: 0.6;
}

.data-flow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(54, 125, 193, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(107, 189, 196, 0.05) 50%, transparent 100%);
    background-size: 200px 100vh, 100vw 300px;
    animation: dataMove 12s linear infinite, dataMove2 15s linear infinite reverse;
    z-index: 1;
}

@keyframes scanMove {
    0%, 100% { 
        transform: translateY(-100vh);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    50% { 
        transform: translateY(100vh);
        opacity: 0.3;
    }
}

@keyframes dataMove {
    0% { 
        background-position: -200px 0, 0 -300px;
    }
    100% { 
        background-position: 100vw 0, 0 100vh;
    }
}

@keyframes dataMove2 {
    0% { 
        background-position: 100vw 0, 0 100vh;
    }
    100% { 
        background-position: -200px 0, 0 -300px;
    }
}

.hero-logo {
    width: 540px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    display: none;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.2s both;
    font-weight: 500;
    line-height: 1.4;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: slideUp 1s ease-out 0.4s both;
    line-height: 1.6;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-primary {
    background: #fff;
    color: #367dc1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #367dc1, #6bbdc4);
    display: block;
    margin: 1rem auto;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #367dc1, #6bbdc4);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #367dc1, #6bbdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.card-description {
    color: #666;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #367dc1 0%, #6bbdc4 100%);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

/* Products Section */
.products {
    padding: 6rem 0 8rem 0;
    background: linear-gradient(135deg, #367dc1 0%, #6bbdc4 100%);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card::after {
    content: 'More';
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(54, 125, 193, 0.4);
    transition: all 0.3s ease;
}

.product-card:hover .product-image::before {
    background: rgba(54, 125, 193, 0.2);
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.product-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card::after {
    content: 'More';
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(54, 125, 193, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(54, 125, 193, 0.4) 0%, rgba(107, 189, 196, 0.4) 100%);
    transition: all 0.3s ease;
}

.project-card:hover .project-image::before {
    background: linear-gradient(135deg, rgba(54, 125, 193, 0.2) 0%, rgba(107, 189, 196, 0.2) 100%);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e3f2fd;
    color: #367dc1;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #367dc1 0%, #6bbdc4 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-detail-left {
    display: flex;
    flex-direction: column;
}

.project-detail-right {
    display: flex;
    flex-direction: column;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.detail-section p, .detail-section li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.detail-section ul {
    padding-left: 1.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spec-table th,
.spec-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
}

.spec-table td {
    color: #666;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #367dc1;
    margin: 1rem 0;
}

.highlight-box h4 {
    color: #367dc1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-box p {
    color: #555;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #333;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-item .icon {
    background: #367dc1;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 10px rgba(54, 125, 193, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #367dc1;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #367dc1;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    color: #888;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

    .nav-menu {
        display: none;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .hero {
        height: 100vh;
        padding: 2rem 0;
    }

    .hero-content {
        margin-top: -2rem;
        padding: 0 1.5rem;
        text-align: center;
    }

    .hero-logo {
        width: 280px;
        max-width: 70vw;
        margin-bottom: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero .description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 280px;
        max-width: 80vw;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }

    .section-header p {
        text-align: justify;
        padding: 0 0.5rem;
        margin: 1rem auto 0;
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
    }

    /* Services 및 Products 섹션 설명 */
    .services .section-header p,
    .products .section-header p,
    .contact .section-header p {
        color: rgba(255,255,255,0.9);
        text-align: justify;
        padding: 0 0.5rem;
        margin: 1rem auto 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* 카드 안쪽 설명 정렬 */
    .card-description,
    .project-description,
    .product-description {
        text-align: justify;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .service-card .card-description {
        text-align: justify;
        line-height: 1.6;
        font-size: 0.95rem;
        color: rgba(255,255,255,0.9);
    }

    /* 카드 제목 중앙 정렬 */
    .card-title,
    .project-title,
    .product-title {
        text-align: center;
        margin-bottom: 1rem;
    }

    /* 태그 중앙 정렬 */
    .project-tags,
    .product-tags {
        justify-content: center;
        margin-top: 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* 섹션 간격 조정 */
    .about,
    .services,
    .projects,
    .contact {
        padding: 4rem 0;
    }

    .products {
        padding: 4rem 0 6rem 0;
    }

    /* 카드 통일성 */
    .about-grid,
    .services-grid,
    .projects-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .about-card,
    .service-card,
    .project-card,
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .project-card {
        max-width: 100%;
    }

    .project-image {
        height: 200px;
    }

    .product-image {
        height: 180px;
    }

    /* Contact 섹션 개선 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .contact-item .icon {
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .contact-item div {
        text-align: left;
        line-height: 1.5;
    }

    .contact-item strong {
        display: block;
        margin-bottom: 0.3rem;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .modal-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: 65vh;
    }

    /* 모달 안쪽 설명 정렬 */
    .modal-body .detail-section p,
    .modal-body .detail-section li {
        text-align: justify;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .modal-body .detail-section h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .modal-body .highlight-box p {
        text-align: justify;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .modal-body .highlight-box h4 {
        text-align: center;
        font-size: 1rem;
    }

    .modal-body .spec-table {
        font-size: 0.9rem;
    }

    .modal-body .spec-table th,
    .modal-body .spec-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .scroll-top-btn {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.2rem;
    }

    .scroll-indicator {
        bottom: 1rem;
        font-size: 0.9rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #367dc1 0%, #6bbdc4 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(54, 125, 193, 0.3);
    transition: all 0.3s ease;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(54, 125, 193, 0.4);
    background: linear-gradient(135deg, #4a8bc7 0%, #7bc4ca 100%);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

.scroll-top-btn span {
    display: block;
    line-height: 1;
}
