:root {
    --primary-color: #007AFF;
    /* Electric Blue */
    --primary-glow: rgba(0, 122, 255, 0.4);
    --secondary-color: #1e293b;
    --accent-color: #00a8ff;
    --text-dark: #f8f9fa;
    --text-gray: #94a3b8;
    --text-light: #ffffff;
    --bg-dark: #0f172a;
    /* Deep Dark Blue/Gray */
    --bg-card: #1e293b;
    --bg-gray: #1e293b;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-light);
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-menu a {
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.1);
    animation: zoom-fade 20s infinite alternate;
}

@keyframes zoom-fade {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: -1;
}

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

.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #0084ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

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

.btn-small {
    padding: 12px 24px;
    background: var(--bg-dark);
    color: white;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.btn-small:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Services */
.services {
    padding: 60px 20px;
}

.bg-light {
    background-color: var(--bg-dark);
}

.solutions {
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 30px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-card) 100%);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.15);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.card-body .summary {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.specs {
    margin-bottom: 30px;
}

.specs li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
}

.specs li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 900;
    text-shadow: 0 0 5px var(--primary-glow);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(0, 122, 255, 0.2) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

#apple-repair {
    position: relative;
    overflow: hidden;
    background: var(--bg-card) !important;
}

.bg-split-top,
.bg-split-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url('assets/repair_composite1.png');
    background-size: 250% auto;
    background-repeat: no-repeat;
    filter: brightness(1.2) saturate(1.0);
    z-index: 1;
}

.bg-split-top {
    top: 0;
    background-position: 10% 15%;
}

.bg-split-bottom {
    bottom: 0;
    background-position: 10% 85%;
}

#apple-repair::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Thin black overlay (approx 35%) for clear visibility while keeping it bright */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

#apple-repair .bento-content h3,
#apple-repair .bento-content p,
#apple-repair .bento-content li {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 3;
}

.bento-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    transition: var(--transition);
}

.bento-item:hover .bento-bg {
    opacity: 0.6;
    transform: scale(1.05);
}

.bento-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.bento-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: #0a0f1d;
    color: var(--text-gray);
    padding: 100px 20px 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 800;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-btn {
    padding: 16px 30px;
    background: var(--bg-card);
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--primary-glow);
    transform: translateY(-3px);
}

.contact-btn.kakao {
    background: #fee500;
    color: #3c1e1e;
    border: none;
}

.contact-btn.kakao:hover {
    background: #fada00;
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.4;
}

/* FAB (Floating Action Button) */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1) translateY(-5px);
}

.fab-call {
    background: var(--primary-color);
    box-shadow: 0 8px 24px var(--primary-glow);
    position: relative;
}

/* Tooltip for phone number on hover (PC users) */
.fab-call::after {
    content: attr(data-phone);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.fab-call:hover::after {
    opacity: 1;
}

.fab-kakao {
    background: #fee500;
    color: #3c1e1e;
}

/* Animations Upgrade */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Pricing Section Styles */
.pricing {
    padding: 150px 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.pricing-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.pricing-category::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-glow);
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.item-name {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.item-price {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.item-price.fixed {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.item-price.variable {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.8;
}

.pricing-notice {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Header Scroll Active */
.header.scroll-active {
    background: rgba(10, 15, 29, 0.95);
    padding: 10px 0;
}

/* Mobile Pricing Adjustment */
@media (max-width: 768px) {
    .pricing {
        padding: 80px 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-item {
        padding: 5px 0;
    }

    .item-name {
        font-size: 0.9rem;
    }
}

/* Mobile Header Optimization (480px and below) */
@media (max-width: 480px) {
    .header {
        z-index: 9999;
        height: 70px; /* Slimmer header on mobile */
    }

    .nav {
        padding: 0 15px;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .logo {
        max-width: 70%; /* Prevent logo from pushing menu icon */
    }

    .logo a {
        font-size: 1.2rem;
        word-break: keep-all;
    }

    .nav-menu {
        display: none; /* Hidden by default, script.js will handle visibility */
    }

    /* Hamburger Menu Icon */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 10001;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-light);
        border-radius: 3px;
        transition: var(--transition);
    }

    /* Hamburger to X Animation */
    .mobile-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}