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

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #1a1a1a;
    font-family: 'Pretendard', sans-serif;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.directions-hero {
    min-height: 40vh;
    background-image: url('../../images/aptech_directions.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;
}

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

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

.directions-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;
}

.directions-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);
    }
}

/* ==============================================
   LOCATION SECTION
   ============================================== */
.location-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e2438 0%, #2a3348 25%, #3f4a5c 50%, #4b5668 75%, #37474f 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.section-label {
    color: #f58f27;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

#main-desc {
    font-size: 13px;
    color: #B0BEC5;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
.location-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Map Container */
.map-container {
    position: relative;
    margin-bottom: 40px;
}

.map-wrapper {
    position: relative;
    width: 100%;
}

.map-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

/* Map Dots (hidden on mobile) */
.map-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: none;
}

.dot {
    position: absolute;
    transform: translate(-50%, -50%);
}

.dot-hq {
    top: 16%;
    left: 36%;
}

.dot-lab {
    top: 55.5%;
    left: 37.5%;
}

.dot-office {
    bottom: 23%;
    right: 28%;
    transform: translate(50%, 50%);
}

.dot-inner {
    width: 8px;
    height: 8px;
    background: #f58f27;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(245, 143, 39, 0.8);
    animation: pulse 2s infinite;
}

.dot-lab .dot-inner {
    animation-delay: 0.7s;
}

.dot-office .dot-inner {
    animation-delay: 1.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(245, 143, 39, 0.8);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(245, 143, 39, 1);
    }
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Location Item */
.location-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hover-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 143, 39, 0.05);
    border: 1px solid rgba(245, 143, 39, 0.2);
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.location-item:hover .hover-card {
    opacity: 1;
    transform: scale(1);
}

.location-content {
    position: relative;
    z-index: 2;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.location-dot {
    width: 6px;
    height: 6px;
    background: #f58f27;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 143, 39, 0.6);
}

.location-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f58f27;
}

.location-address {
    margin: 0 0 8px 18px;
    color: #B0BEC5;
    font-size: 13px;
    line-height: 1.5;
}

.location-contact {
    margin: 0 0 0 18px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
}

/* Decorative Elements */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.deco-circle-1 {
    top: 15%;
    right: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 143, 39, 0.08) 0%, transparent 70%);
}

.deco-circle-2 {
    bottom: 15%;
    left: 8%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(176, 190, 197, 0.06) 0%, transparent 70%);
}

/* ==============================================
   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 - MOBILE
   ============================================== */

@media (max-width: 768px) {
    /* Hero Section */
    .directions-hero {
        min-height: 35vh;
        padding: 100px 20px 30px 20px;
    }
    
    .directions-hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .directions-hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Location Section */
    #main-title {
        font-size: 42px;
    }
    
    #main-desc {
        font-size: 13px;
    }
    
    /* 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;
    }
}

/* ==============================================
   RESPONSIVE DESIGN - PC (768px and above)
   ============================================== */

@media (min-width: 768px) {
    #main-title {
        font-size: 48px;
    }
    
    #main-desc {
        font-size: 16px;
    }
    
    /* Show original image and dots on PC */
    .map-image {
        content: url('https://cdn.imweb.me/upload/S2025021297be7e1958de0/0d5df91fcf58a.png');
    }
    
    .map-dots {
        display: block !important;
    }
    
    /* PC Layout: Horizontal split */
    .location-layout {
        display: flex;
        align-items: stretch;
        gap: 80px;
        padding: 0 40px;
    }
    
    .map-container {
        flex: 1;
        margin-bottom: 0;
        display: flex;
        align-items: stretch;
    }
    
    .map-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .map-image {
        height: 100%;
        min-height: 500px;
        filter: hue-rotate(180deg) sepia(30%) saturate(120%) brightness(0.9) contrast(1.1) drop-shadow(0 0 10px rgba(176, 190, 197, 0.6)) drop-shadow(0 0 20px rgba(176, 190, 197, 0.4)) drop-shadow(0 0 30px rgba(176, 190, 197, 0.2));
    }
    
    .cards-container {
        flex: 1;
    }
    
    /* Card styling for PC */
    .location-item {
        padding: 35px 40px;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: none;
    }
    
    .location-item:last-child {
        border-bottom: none;
    }
    
    .location-item:hover {
        transform: translateX(8px);
        box-shadow: none;
    }
    
    .location-item .hover-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(245, 143, 39, 0.2);
        border-radius: 0;
    }
    
    .location-header h3 {
        font-size: 24px !important;
    }
    
    .location-address {
        font-size: 15px !important;
    }
    
    .location-contact {
        font-size: 13px !important;
    }
    
    .dot-inner {
        width: 12px;
        height: 12px;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 15px rgba(245, 143, 39, 0.8);
        }
        50% {
            transform: scale(1.3);
            box-shadow: 0 0 25px rgba(245, 143, 39, 1);
        }
    }
}

/* ==============================================
   RESPONSIVE DESIGN - LARGE SCREENS
   ============================================== */

@media (min-width: 1200px) {
    .location-layout {
        gap: 80px;
    }
    
    .location-item .hover-card {
        background: rgba(255, 255, 255, 0.05);
    }
}
