/*
Theme Name: Solluna IoT Neve Child
Theme URI: http://iot.solluna-iot.com
Template: neve
Author: Antigravity
Description: Premium dark mode theme with neon glassmorphism for IoT projects.
Version: 2.0.0
*/

/* 100% Free Commercial Fonts (SIL Open Font License) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=block');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
    --bg-color: #07090e; /* Deep Midnight */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #00f2fe;
    --accent-cyan: #4facfe;
    --accent-purple: #b06ab3;
    --accent-green: #38ef7d;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 15px rgba(0, 242, 254, 0.5), 0 0 30px rgba(0, 242, 254, 0.3);
}

/* High-End Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Very thin */
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #03060c; /* Matches dark theme */
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); /* Subtle grey */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.4); /* Cyan glow on hover */
}

/* Base Dark Theme Override (Free Commercial Typography) */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
body, .wrapper, .neve-main {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    /* Outfit for ENG, Pretendard for KOR, both 100% commercial free OFL */
    font-family: 'Outfit', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
    word-break: keep-all; /* Keeps Korean words intact for better readability */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
}

/* Custom Selection */
::selection {
    background: var(--accent-blue);
    color: #000;
}

/* Hero & 4th Section Premium Deep Gradient Background Upgrade */
.hero, #hy-vision {
    background: radial-gradient(circle at 75% 50%, #0a1324 0%, #020408 80%) !important; /* Premium Deep Blue */
    position: relative;
    overflow: hidden;
}

/* 3D Glass Floating Animation */
@keyframes floatGlass {
    0% { transform: translateY(0px) scale(1.05) translateX(5%); }
    100% { transform: translateY(-25px) scale(1.05) translateX(5%); }
}

/* The Ultimate Silicon Valley CSS Animated Aurora Layer */
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08), transparent 50%);
    animation: slowDrift 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes slowDrift {
    0% { transform: rotate(0deg) scale(1) translate(0, 0); }
    50% { transform: rotate(5deg) scale(1.1) translate(2vw, 5vh); }
    100% { transform: rotate(-5deg) scale(1) translate(-2vw, -5vh); }
}

.hero > * { z-index: 2; position: relative; } /* Keep text above the aura */

/* Glassmorphism for Header */
header.header {
    background: rgba(7, 9, 14, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

/* Reveal Animation Styles */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
    backface-visibility: hidden;
}

.reveal.active {
    opacity: 1;
}

/* Hide Mobile Menu Toggle on Desktop */
.menu-toggle {
    display: none;
}

/* Ultra-Luxury Minimalist Scroll Indicator */
.luxury-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05); /* Faint glass rim */
}

.luxury-scroll-indicator:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) translateY(-3px);
}

.luxury-scroll-indicator .scroll-dot {
    width: 4px;
    height: 4px;
    background-color: #0ea5e9;
    border-radius: 50%;
    margin-top: 6px;
    box-shadow: 0 0 8px #0ea5e9;
    animation: scrollDotDrop 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollDotDrop {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .luxury-scroll-indicator { bottom: 20px; transform: translateX(-50%) scale(0.75); }
    .hero-content { margin-top: -8vh !important; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem) !important; margin-bottom: 20px; line-height: 1.15; }
    .hero-subtitle { font-size: 1.05rem !important; line-height: 1.6; }
    .hero-buttons { flex-direction: column !important; width: 100%; gap: 15px !important; margin-top: 30px !important; }
    .cta-primary, .cta-secondary { width: 100% !important; text-align: center !important; }
    #navbar {
        padding: 15px 5% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        height: 70px !important;
    }

    .logo img {
        max-height: 40px !important;
    }

    /* Hamburger Button Style */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Mobile Menu Drawer */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 14, 20, 0.98);
        backdrop-filter: blur(15px);
        transition: right 0.4s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column !important;
        align-items: center;
        gap: 40px !important;
    }

    .nav-links a {
        font-size: 1.5rem !important;
        font-weight: 700;
        color: var(--text-primary);
    }

    /* Reset hero padding for hamburger menu */
    .hero {
        padding-top: 120px !important;
        min-height: 80vh !important;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        /* ?꿔꺂??袁ㅻ븶????濚밸Ŧ援잒キ??嶺뚮㉡???2x2 ??? ??嶺뚮㉡???(????ろ뀯???醫롫뼲?1fr) */
        gap: 15px !important;
    }

    @media (max-width: 480px) {
        .services-grid {
            grid-template-columns: 1fr !important;
            /* ????썹땟??????ろ뀯? ???됰Ŧ六??? 1???濚????繹먮냱踰????怨뺤퓡 */
        }
    }

    .iot-card {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 2.2rem !important;
    }
}

/* Service Cards Styling */
.iot-card {
    padding: 35px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.iot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.iot-card:hover::before {
    left: 150%;
}

.iot-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: var(--neon-glow);
}

.iot-card img {
    border-radius: 16px;
    margin-bottom: 25px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.iot-card:hover img {
    transform: scale(1.05);
}

/* Professional Hero Typography (100% Free Commercial Fonts) */
.hero-title {
    font-family: 'Outfit', 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(3.0rem, 5vw, 5.5rem); /* Flawless fluid responsive scaling */
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2px; /* Tight tracking for modern look */
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hero-title .tech-highlight {
    /* High-end Vercel/Stripe CSS Text Gradient */
    background: linear-gradient(135deg, #ffffff 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* Gradients don't mix well with shadow on the text itself, rely on the glow behind */
    display: inline-block;
    position: relative;
}
.hero-title .tech-highlight::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%; width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    background: rgba(14, 165, 233, 0.4);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.15rem); /* Smooth elegant breakpoint scaling */
    word-break: keep-all; /* Prevents Korean word breaking */
    color: #cbd5e1;
    max-width: 750px;
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 1);
}

/* Custom Ambiance Corporate Buttons */
.cta-primary, .cta-secondary {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Pretendard Variable', Pretendard, 'Outfit', sans-serif;
    border-radius: 50px; 
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cta-primary {
    background-color: #ffffff;
    color: #000000 !important;
    border: 1px solid transparent; 
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15); 
}

.cta-primary:hover {
    background-color: #ffffff;
    color: #000000 !important;
    border: 1px solid transparent; 
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.35); 
    transform: translateY(-2px);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.03); 
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); 
}

.cta-secondary:hover {
    background: rgba(14, 165, 233, 0.1); 
    border-color: #0ea5e9;
    color: #ffffff !important;
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3), inset 0 0 20px rgba(14, 165, 233, 0.15); 
    transform: translateY(-2px);
}

/* Glass Effect Class for standard components */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Navbar Scrolled Effect */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    /* ???? ??????????嚥싳쉶瑗??꾧틡???癲ル슢??節??*/
    align-items: center;
    transition: all 0.4s ease;
}

#navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: -1;
}

/* PC????????⑤슢?뽫춯??쒐뙴?????????怨뺣윞????怨뺤퓡 ??????뎡 */
#navbar-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar.scrolled {
    padding: 10px 5%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

/* UI/UX Custom Motions */
html { scroll-behavior: smooth !important; }

/* Minimalist Mouse Scroll Indicator (High-End Design) */
.scroll-down-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(7, 9, 14, 0.4);
    backdrop-filter: blur(4px);
}
.scroll-down-indicator:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) translateY(-3px);
}
.scroll-down-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: -2px; /* Center horizontally (width 4px / 2) */
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 4px;
    animation: mouseScroll 2.2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
@keyframes mouseScroll {
    0% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 0; transform: translateY(0); }
}

.iot-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 254, 0.15), transparent 40%);
    pointer-events: none;
    z-index: 1;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.iot-card:hover::after {
    opacity: 1;
}

/* =========================================================================
   BODY SECTIONS UPGRADE (BENTO, AMBIENT GLASS, LIST VIEWS)
   ========================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 140px 5%;
}

.bg-subtle {
    background-color: #04070d;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px; /* The Vercel/Linear dotted tech grid */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 70px;
    text-align: center;
    letter-spacing: -1px;
    color: #ffffff;
}

.text-left {
    text-align: left;
}

/* Colors */
.color-cyan { color: #ffffff; } /* Pure White (Primary Luxury) */
.color-purple { color: #0ea5e9; } /* Ocean Blue */
.color-green { color: #94a3b8; } /* Slate Silver */
.color-yellow { color: #e2e8f0; } /* Pearl White */

/* BENTO BOX LAYOUT */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.bento-item {
    padding: 45px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(14, 165, 233, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-large {
    grid-column: span 4;
}

.bento-large h3 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.bento-large p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.bento-stat {
    grid-column: span 2;
    text-align: center;
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.05), rgba(7, 9, 14, 1));
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.bento-list {
    grid-column: span 4;
}

.bento-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bento-list li {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.check {
    margin-right: 15px;
    font-weight: bold;
}

@media (min-width: 1024px) {
    .bento-large { grid-column: span 2; grid-row: span 2; }
    .bento-stat { grid-column: span 1; }
    .bento-list { grid-column: span 2; }
}

/* AMBIENT GLASS CARDS (SERVICES) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.ambient-glass {
    position: relative;
    padding: 40px;
    border-radius: 20px;
    background: rgba(7, 9, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    overflow: hidden;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The magic ambient hover border */
.ambient-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 1px; /* Ultra thin */
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.7s ease, opacity 0.7s ease;
    opacity: 0.8;
}

.ambient-glass:hover::before {
    background: linear-gradient(135deg, #ffffff, transparent, #0ea5e9); /* Silver to Ocean Blue */
    opacity: 1;
}

.ambient-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0, 0.9), 0 0 40px rgba(14, 165, 233, 0.15);
    background: rgba(8, 11, 18, 0.8);
    border-color: rgba(255,255,255,0.1);
}

.card-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    aspect-ratio: 16/9;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.ambient-glass:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.ambient-glass h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.ambient-glass p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* HIGH-END LIST VIEW (PORTFOLIO & BLOG) */
.list-view-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: left;
}

.list-item:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateX(10px);
}

.list-content h3 {
    font-size: 1.4rem;
    margin: 10px 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.list-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.list-arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

.list-item:hover .list-arrow {
    color: #ffffff;
    transform: translateX(5px);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 15px;
    display: inline-block;
}
.badge-cyan { background: rgba(0, 229, 255, 0.2); color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.4); }
.badge-purple { background: rgba(0, 123, 255, 0.2); color: #007bff; border: 1px solid rgba(0, 123, 255, 0.4); }

.date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
}

/* CINEMATIC VISION SECTION */
.section-vision {
    padding: 200px 5%;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05) 0%, #07090e 70%);
}

.cinematic-text h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.4;
    font-weight: 300;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 40px;
}

.cinematic-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Delays for reveal animation removed to fix hover lag */
/* .delay-1, .delay-2, .delay-3 removed */