/* ==============================================
   CSS RESET
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.contact-hero {
    min-height: 40vh;
    background-image: url('../../images/aptech_contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 30px 40px 30px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact-hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.contact-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    word-break: keep-all;
    word-wrap: break-word;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.contact-hero p {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    word-break: keep-all;
    word-wrap: break-word;
    color: white;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   CONTACT INFO SECTION
   ============================================== */
.contact-info-section {
    min-height: 70vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(90, 122, 115, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(108, 117, 125, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ==============================================
   CONTACT HEADER
   ============================================== */
.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    color: #5A7A73;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.contact-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 20px 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

.contact-header p {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* ==============================================
   CONTACT GRID
   ============================================== */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3.5fr 6.5fr;
    gap: 100px;
    align-items: flex-start;
}

/* Contact Item */
.contact-item {
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.contact-item:nth-child(1) {
    animation: fadeInUp 1s ease 0.8s forwards;
}

.contact-item:nth-child(2) {
    animation: fadeInUp 1s ease 1s forwards;
}

/* Vertical Line */
.vertical-line {
    width: 3px;
    height: 80px;
    background: linear-gradient(to bottom, #5A7A73, #6B8A82);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 0;
}

.vertical-line.tall {
    height: 180px;
}

/* Contact Content */
.contact-content {
    flex: 1;
}

.contact-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-circle {
    width: 32px;
    height: 32px;
    background: #5A7A73;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-title-row h3 {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

/* Phone Number */
.phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #5A7A73;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.phone-number:hover {
    color: #4a6359;
}

/* Email Division */
.email-division {
    margin-bottom: 30px;
}

.email-division:last-child {
    margin-bottom: 0;
}

.email-division h4 {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5A7A73;
    margin: 0 0 12px 0;
}

.email-list {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.email-list a {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-list a:hover {
    color: #5A7A73;
}

.email-list .divider {
    color: #6c757d;
    font-weight: 300;
}

/* ==============================================
   FOOTER STYLES
   ============================================== */
footer {
    background: #2d3436;
    color: white;
    padding: 60px 0 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

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

.footer-main {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #636e72;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo-section img {
    height: 60px;
    margin-right: 25px;
    filter: brightness(1.2);
}

.footer-logo-section div {
    font-size: 14px;
    color: #b2bec3;
    line-height: 1.6;
    word-break: keep-all;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: start;
}

.footer-info-grid article h4 {
    font-size: 16px;
    color: #f58f27;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.footer-info-grid article p {
    font-size: 14px;
    color: #b2bec3;
    line-height: 1.7;
    margin: 0;
    word-break: keep-all;
}

.contact-info {
    color: #ddd;
    margin-top: 8px;
    display: block;
}

.contact-info a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #f58f27;
}

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

.footer-copyright p {
    font-size: 12px;
    color: #636e72;
    margin: 0;
    word-break: keep-all;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    /* Hero Section */
    .contact-hero {
        min-height: 35vh;
        padding: 100px 20px 30px 20px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .contact-hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Contact Info Section */
    .contact-info-section {
        padding: 60px 0;
    }
    
    .contact-container {
        padding: 0 20px;
    }
    
    .contact-header h2 {
        font-size: 36px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-item {
        text-align: left;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 30px 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        margin-bottom: 30px;
    }
    
    .footer-logo-section img {
        height: 40px;
        margin-right: 20px;
    }
    
    .footer-logo-section div {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info-grid article h4 {
        font-size: 14px;
    }
    
    .footer-info-grid article p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .footer-copyright p {
        font-size: 11px;
    }
}
