@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07080d;
    --bg-card: rgba(15, 18, 36, 0.4);
    --bg-nav: rgba(7, 8, 13, 0.75);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 242, 254, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #bd00ff;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-accent: linear-gradient(135deg, #bd00ff 0%, #00f2fe 100%);
    --font-outfit: 'Outfit', sans-serif;
    --font-korean: 'Noto Sans KR', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-outfit);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism Common */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.15);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

header.scrolled .nav-container {
    padding: 0.85rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at 80% 20%, rgba(189, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 50%),
                radial-gradient(circle at 10% 80%, rgba(0, 242, 254, 0.12) 0%, rgba(0, 0, 0, 0) 50%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.35;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* Sections Common styling */
section {
    padding: 7rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    word-break: keep-all;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    word-break: keep-all;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 8, 13, 0.9) 0%, rgba(7, 8, 13, 0) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 242, 254, 0.2);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.project-link svg {
    transition: var(--transition);
}

.project-link:hover svg {
    transform: translateX(3px);
}

/* Location Section */
.location-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.map-wrapper {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Glowing iframe dark filter mapping */
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) contrast(120%);
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item-card {
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(189, 0, 255, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.info-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-details p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact Section */
.contact-container {
    max-width: 750px;
    margin: 0 auto;
}

.contact-card {
    padding: 3rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

textarea.form-input {
    resize: none;
    min-height: 150px;
}

.form-submit-btn {
    width: 100%;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    background: #030407;
}

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

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo span {
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-bg {
        width: 100%;
        opacity: 0.25;
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    .nav-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Cheongchun Showcase Styles */
.cheongchun-showcase {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.cheongchun-showcase::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.badge-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.85rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.featured-subtitle {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: -0.25rem;
    margin-bottom: 1.25rem;
}

.cheongchun-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.highlight-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.3);
}

.chip-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.chip-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.chip-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: block;
}

.gallery-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.gallery-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.gallery-tab.active {
    background: var(--gradient-primary);
    color: #07080d;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.main-preview-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #090c14;
    border: 1px solid var(--border-color);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.main-preview-frame.mobile-mode-frame {
    background: radial-gradient(circle, rgba(20, 25, 45, 0.9) 0%, rgba(7, 8, 13, 0.98) 100%);
}

.main-preview-frame.mobile-mode-frame .preview-img {
    max-height: 92%;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.img-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to top, rgba(7, 8, 13, 0.95) 0%, rgba(7, 8, 13, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.caption-tag {
    font-family: var(--font-outfit);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.caption-text {
    color: var(--text-main);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumbnails-container {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.25rem 0.1rem 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.thumb-item {
    flex: 0 0 76px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.55;
    transition: var(--transition);
    background: #090c14;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

@media (max-width: 992px) {
    .cheongchun-showcase {
        grid-template-columns: 1fr;
    }
    .cheongchun-highlights {
        grid-template-columns: 1fr;
    }
}

/* Hero Showcase Panel Layout */
.hero-cheongchun-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-showcase-panel {
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .hero-cheongchun-layout {
        grid-template-columns: 1fr;
    }
}

.main-preview-frame {
    cursor: pointer;
}

.main-preview-frame::after {
    content: '🔍 클릭하여 전체 화면 보기';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(7, 8, 13, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    opacity: 0.85;
    pointer-events: none;
    transition: var(--transition);
}

.main-preview-frame:hover::after {
    opacity: 1;
    background: rgba(0, 242, 254, 0.2);
    color: #fff;
}

/* Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 10, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    margin-top: 1.25rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary);
    color: #000;
}

.lightbox-nav.lightbox-prev { left: 30px; }
.lightbox-nav.lightbox-next { right: 30px; }

/* Pure Vanilla Simple Modal */
.simple-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
}

.simple-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.simple-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.simple-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 1040px;
    max-height: 94vh;
    background: #0f1224;
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.simple-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.simple-modal-header h4 {
    font-size: 1.2rem;
    color: var(--primary, #00f2fe);
    margin: 0;
    font-weight: 700;
}

.simple-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.simple-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary, #00f2fe);
}

.simple-modal-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
    flex-grow: 1;
    min-height: 320px;
    gap: 1rem;
}

.modal-img-wrap {
    flex-grow: 1;
    width: 100%;
    height: 60vh;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: block !important;
}

.modal-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.modal-arrow:hover {
    background: var(--primary, #00f2fe);
    color: #000;
}

.simple-modal-caption {
    text-align: center;
    color: #f3f4f6;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    word-break: keep-all;
}

/* Single Preview Card Layout */
.single-preview-card {
    cursor: pointer;
    text-align: center;
}

.single-preview-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    background: #000;
}

.single-preview-card:hover .single-preview-wrap {
    border-color: var(--primary, #00f2fe);
    box-shadow: 0 16px 44px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.single-preview-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.single-preview-card:hover .single-preview-img {
    transform: scale(1.02);
}

.single-preview-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 12, 24, 0.88);
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: var(--primary, #00f2fe);
    padding: 0.45rem 0.95rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.single-preview-caption {
    margin-top: 1.1rem;
}

.single-preview-caption h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.single-preview-caption p {
    font-size: 0.85rem;
    color: var(--text-muted, #9ca3af);
    margin: 0;
    word-break: keep-all;
}

/* Showcase Sub Grid & Badges */
.showcase-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

@media (max-width: 576px) {
    .showcase-sub-grid {
        grid-template-columns: 1fr;
    }
}

.web-featured-card {
    margin-bottom: 0.25rem;
}

.mobile-type-img {
    max-height: 200px !important;
    object-fit: cover;
    object-position: top;
}

.preview-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.web-badge {
    background: rgba(10, 12, 24, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #00f2fe;
}

.family-badge {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.55);
    color: #ff8e8e;
}

.staff-badge {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.55);
    color: #4ecdc4;
}

.gallery-open-banner {
    margin-top: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 12px;
    text-align: center;
    color: var(--primary, #00f2fe);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-open-banner:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--primary, #00f2fe);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

.dual-project-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    height: 240px;
    overflow: hidden;
}

.dual-project-preview .project-img {
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
}


