/*

TemplateMo 596 Electric Xtra

https://templatemo.com/tm-596-electric-xtra

*/

@charset "utf-8";

/* CSS Document */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Rajdhani', sans-serif;
            background: #0a0a0a;
            color: #ffffff;
            overflow-x: hidden;
            position: relative;
            font-weight: 400;
        }

        /* Animated background with hexagon pattern */
        .grid-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 25% 25%, transparent 2%, rgba(0, 255, 8, 0.03) 2%, rgba(0, 255, 17, 0.03) 3%, transparent 3%),
                radial-gradient(circle at 75% 75%, transparent 2%, rgba(52, 255, 99, 0.03) 2%, rgba(9, 170, 0, 0.03) 3%, transparent 3%);
            background-size: 80px 80px;
            animation: grid-move 30s linear infinite;
            z-index: -2;
        }

        /* Animated shapes */
        .shapes-container {
            position: fixed;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .shape {
            position: absolute;
            opacity: 0.1;
        }

        .shape-circle {
            width: 300px;
            height: 300px;
            border: 2px solid #D9ED92;
            border-radius: 50%;
            top: 10%;
            left: 10%;
            animation: float-rotate 20s ease-in-out infinite;
        }

        .shape-triangle {
            width: 0;
            height: 0;
            border-left: 100px solid transparent;
            border-right: 100px solid transparent;
            border-bottom: 173px solid rgba(0, 178, 255, 0.2);
            top: 60%;
            right: 15%;
            animation: float-rotate 25s ease-in-out infinite reverse;
        }

        .shape-square {
            width: 150px;
            height: 150px;
            border: 2px solid #D9ED92;
            transform: rotate(45deg);
            bottom: 20%;
            left: 20%;
            animation: float-rotate 22s ease-in-out infinite;
        }

        @keyframes float-rotate {
            0%, 100% {
                transform: translateY(0) rotate(0deg) scale(1);
            }
            25% {
                transform: translateY(-30px) rotate(90deg) scale(1.1);
            }
            50% {
                transform: translateY(20px) rotate(180deg) scale(0.9);
            }
            75% {
                transform: translateY(-10px) rotate(270deg) scale(1.05);
            }
        }

        /* Gradient overlay */
        .gradient-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 50%, rgba(51, 255, 0, 0.15) 0%, transparent 50%),
                        radial-gradient(circle at 80% 50%, rgba(23, 90, 29, 0.15) 0%, transparent 50%),
                        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
            z-index: -1;
            animation: gradient-shift 10s ease-in-out infinite;
        }

        @keyframes gradient-shift {
            0%, 100% { transform: scale(1) rotate(0deg); }
            50% { transform: scale(1.1) rotate(180deg); }
        }

        @keyframes grid-move {
            0% { transform: translate(0, 0); }
            100% { transform: translate(80px, 80px); }
        }

        /* Floating particles */
        .particle {
            position: fixed;
            pointer-events: none;
            opacity: 0;
            z-index: 1;
        }

        .particle::before {
            content: '';
            position: absolute;
            width: 2px;
            height: 2px;
            background: #386641;
            box-shadow: 0 0 10px #386641, 0 0 20px #386641;
            animation: float-up 15s linear infinite;
        }

        @keyframes float-up {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 20px 50px;
            background: rgba(10, 10, 10, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 94, 0, 0.1);
        }

        nav.scrolled {
            padding: 15px 50px;
            background: rgba(10, 10, 10, 0.95);
            box-shadow: 0 5px 30px rgba(0, 255, 21, 0.2);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            gap: 10px;
        }

        .logo-svg {
            width: 40px;
            height: 40px;
        }

        .logo-text {
            font-family: 'Orbitron', monospace;
            font-size: 24px;
            font-weight: 900;
            background: linear-gradient(45deg, #386641, #D9ED92);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite;
            text-shadow: 0 0 30px rgba(0, 255, 17, 0.5);
        }

        @keyframes glow {
            0%, 100% { 
                filter: brightness(1);
                text-shadow: 0 0 30px rgba(0, 189, 0, 0.5);
            }
            50% { 
                filter: brightness(1.5);
                text-shadow: 0 0 40px rgba(0, 189, 0, 0.5);
            }
        }

        .nav-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: #ffffff;
            position: relative;
            transition: all 0.3s ease;
            padding: 8px 16px;
            font-family: 'Orbitron', monospace;
            font-weight: 500;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.7;
        }

        .nav-links a.active {
            opacity: 1;
            color: #99D98C;
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .nav-links a:hover::before,
        .nav-links a.active::before {
            border-color: #99D98C;
            box-shadow: inset 0 0 10px rgba(0, 189, 0, 0.5);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #386641, #D9ED92);
            transition: width 0.3s ease;
            box-shadow: 0 0 10px rgba(0, 189, 0, 0.5);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        /* Mobile menu */
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
        }

        .menu-toggle span {
            width: 25px;
            height: 2px;
            background: #99D98C;
            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(5px, -5px);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 80px 20px 20px;
        }

        .hero-content {
            text-align: center;
            max-width: 1200px;
            animation: fade-in-up 1s ease-out;
            z-index: 10;
            width: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Text Rotator Styles */
        .text-rotator {
            position: relative;
            min-height: 100px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
        }

        .text-set {
            position: absolute;
            width: 100%;
            opacity: 0;
            display: none;
        }

        .text-set.active {
            opacity: 1;
            display: block;
        }

        .glitch-text {
            font-family: 'Orbitron', monospace;
            font-size: clamp(0.98rem, 2.94vw, 2.4rem);
            font-weight: 900;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            text-shadow: 0 0 20px rgba(0, 189, 0, 0.5);
            overflow: hidden;
        }

        .char {
            display: inline-block;
            opacity: 0;
            transform: translateY(50px);
            animation: charFlyIn 0.5s ease-out forwards;
        }

        @keyframes charFlyIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .char.out {
            animation: charFlyOut 0.3s ease-in forwards;
        }

        @keyframes charFlyOut {
            to {
                opacity: 0;
                transform: translateY(-30px) rotateX(90deg);
            }
        }

        .subtitle {
            font-size: 1.5rem;
            margin: 20px 0;
            opacity: 0;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
            font-weight: 300;
        }

        .subtitle.visible {
            animation: subtitleFade 0.8s ease-out 0.5s forwards;
        }

        @keyframes subtitleFade {
            to {
                opacity: 0.6;
            }
        }

        @keyframes fade-in-up {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .glitch-text {
            font-family: 'Orbitron', monospace;
            font-size: clamp(2.6rem, 10vw, 3.8rem);
            font-weight: 900;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            text-shadow: 0 0 20px rgba(0, 189, 0, 0.5);
        }

        .glitch-text::before,
        .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .glitch-text::before {
            animation: glitch-1 0.5s infinite;
            color: #99D98C;
            z-index: -1;
            text-shadow: -2px 0 #386641;
        }

        .glitch-text::after {
            animation: glitch-2 0.5s infinite;
            color: #386641;
            z-index: -1;
            text-shadow: 2px 0 #386641;
        }

        @keyframes glitch-1 {
            0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
            20% { clip-path: inset(33% 0 33% 0); transform: translate(-2px); }
            40% { clip-path: inset(66% 0 0 0); transform: translate(2px); }
            60% { clip-path: inset(0 0 66% 0); transform: translate(1px); }
            80% { clip-path: inset(25% 0 50% 0); transform: translate(-1px); }
        }

        @keyframes glitch-2 {
            0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
            20% { clip-path: inset(50% 0 25% 0); transform: translate(2px); }
            40% { clip-path: inset(0 0 75% 0); transform: translate(-2px); }
            60% { clip-path: inset(75% 0 0 0); transform: translate(-1px); }
            80% { clip-path: inset(40% 0 40% 0); transform: translate(1px); }
        }

        .subtitle {
            font-size: 1.5rem;
            margin: 20px 0;
            opacity: 0.6;
            animation: fade-in 1s ease-out 0.5s both;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
            font-weight: 300;
        }

        @keyframes fade-in {
            from { opacity: 0; }
            to { opacity: 0.6; }
        }

        .cta-container {
            position: absolute;
            bottom: 90px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            z-index: 100;
        }

        .cta-button {
            padding: 12px 30px;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-family: 'Orbitron', monospace;
            font-weight: 700;
        }

        .cta-primary {
            background: linear-gradient(45deg, #386641, #a2cf00);
            color: white;
            animation: pulse 2s infinite;
            box-shadow: 0 0 30px rgba(0, 189, 0, 0.5);
        }

        @keyframes pulse {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 0 30px rgba(0, 189, 0, 0.5);
            }
            50% { 
                transform: scale(1.05);
                box-shadow: 0 0 40px rgba(0, 189, 0, 0.5);
            }
        }

        .cta-secondary {
            background: transparent;
            color: #a2cf00;
            border: 2px solid #a2cf00;
            box-shadow: inset 0 0 20px rgba(0, 189, 0, 0.1);
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(0, 189, 0, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .cta-button:hover::before {
            width: 300px;
            height: 300px;
        }

        .cta-secondary:hover {
            background: rgba(0, 189, 0, 0.1);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 10px 40px rgba(0, 255, 21, 0.4), inset 0 0 30px rgba(0, 255, 30, 0.2);
            border-color: #ffffff;
        }

        /* Features Section with Tabs */
        .features {
            padding: 100px 20px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .section-title {
            font-family: 'Orbitron', monospace;
            font-size: 3rem;
            font-weight: 900;
            text-align: center;
            margin-bottom: 60px;
            background: linear-gradient(45deg, #99D98C, #D9ED92);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-transform: uppercase;
        }

        .features-container {
            display: flex;
            grid-template-columns: 300px 1fr;
            gap: 40px;
            align-items: stretch;
        }

        .feature-tabs {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 255, 17, 0.2);
            border-radius: 10px;
            padding: 20px;
            backdrop-filter: blur(10px);
            /* 1. 탭 메뉴들을 정렬하기 위해 flex 컨테이너로 지정 */
            display: flex;
            
            /* 2. 메뉴들을 세로(column)로 쌓도록 방향 설정 */
            flex-direction: column;
            
            /* 3. 세로(주축) 방향에서 가운데 정렬 */
            justify-content: center;
        }

        .tab-item {
            padding: 15px 20px;
            margin-bottom: 10px;
            cursor: pointer;
            border: 1px solid transparent;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.1rem;
        }

        .tab-item:hover {
            background: rgba(0, 255, 38, 0.1);
            border-color: rgba(0, 255, 38, 0.3);
        }

        .tab-item.active {
            background: linear-gradient(45deg, rgba(6, 174, 0, 0.2), rgba(62, 255, 52, 0.2));
            border-color: #a2cf00;
            box-shadow: 0 0 20px rgba(0, 255, 38, 0.3);
        }

        .tab-icon {
            font-size: 1.5rem;
        }

        .feature-content {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(21, 255, 0, 0.2);
            border-radius: 10px;
            padding: 40px;
            backdrop-filter: blur(10px);
        }

        .content-panel {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .content-panel.active {
            display: block;
        }

        .content-panel h3 {
            font-family: 'Orbitron', monospace;
            font-size: 2rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #99D98C, #386641);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .content-panel p {
            line-height: 1.8;
            opacity: 0.8;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .feature-list {
            list-style: none;
            margin-top: 20px;
        }

        .feature-list li {
            padding: 10px 0;
            padding-left: 30px;
            position: relative;
            opacity: 0.8;
        }

        .feature-list li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: #a2cf00;
            font-size: 1.2rem;
        }

        /* About Section */
        .about {
            padding: 100px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text h2 {
            font-family: 'Orbitron', monospace;
            font-size: 2.5rem;
            margin-bottom: 30px;
            background: linear-gradient(45deg, #99D98C, #386641);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .about-text p {
            line-height: 1.8;
            opacity: 0.8;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .about-visual {
            position: relative;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .about-graphic {
            width: 300px;
            height: 300px;
            position: relative;
            animation: float 6s ease-in-out infinite;
        }

        .about-graphic::before,
        .about-graphic::after {
            content: '';
            position: absolute;
            border: 2px solid #99D98C;
            border-radius: 10px;
            box-shadow: 0 0 30px rgba(4, 255, 0, 0.575);
        }

        .about-graphic::before {
            width: 100%;
            height: 100%;
            animation: rotate 20s linear infinite;
        }

        .about-graphic::after {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-color: #009605;
            animation: rotate 15s linear infinite reverse;
            box-shadow: 0 0 30px rgba(30, 255, 0, 0.324);
        }

        /* Alternative graphic for second row */
        .about-graphic-alt {
            width: 300px;
            height: 300px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: float 6s ease-in-out infinite;
        }

        .hexagon {
            position: absolute;
            width: 100px;
            height: 100px;
            background: linear-gradient(45deg, #279e10, #45ec23);
            opacity: 0.3;
            clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
        }

        .hexagon:nth-child(1) {
            width: 150px;
            height: 150px;
            animation: hexagon-rotate 8s linear infinite;
        }

        .hexagon:nth-child(2) {
            width: 100px;
            height: 100px;
            animation: hexagon-rotate 12s linear infinite reverse;
            opacity: 0.5;
        }

        .hexagon:nth-child(3) {
            width: 200px;
            height: 200px;
            animation: hexagon-rotate 15s linear infinite;
            opacity: 0.2;
        }

        @keyframes hexagon-rotate {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.1); }
            100% { transform: rotate(360deg) scale(1); }
        }

        /* Contact Section */
        .contact {
            padding: 100px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 255, 26, 0.2);
            border-radius: 10px;
            padding: 40px;
            backdrop-filter: blur(10px);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: #52d737;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(0, 255, 8, 0.3);
            color: white;
            font-size: 1rem;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-family: 'Rajdhani', sans-serif;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #52d737;
            box-shadow: 0 0 20px rgba(0, 255, 30, 0.3);
            background: rgba(255, 255, 255, 0.08);
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .submit-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(45deg, #52d737d7, #52d73786);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Orbitron', monospace;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(21, 255, 0, 0.5);
        }

        .contact-info {
            padding: 40px;
        }

        .contact-info h3 {
            font-family: 'Orbitron', monospace;
            font-size: 2rem;
            margin-bottom: 30px;
            background: linear-gradient(45deg, #52d737, #52d737b3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .info-item {
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .info-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(45deg, #52d737, #52d737b3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .info-details h4 {
            color: #11ff00;
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .info-details p {
            opacity: 0.8;
        }

        /* Map Section */
        .map-container {
            margin-top: 40px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(30, 255, 0, 0.2);
            border-radius: 10px;
            padding: 20px;
            backdrop-filter: blur(10px);
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .map-placeholder {
            text-align: center;
            opacity: 0.6;
        }

        .map-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 47, 0.1) 50%, transparent 60%);
            animation: scan 3s linear infinite;
        }

        @keyframes scan {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Footer */
        footer {
            background: rgba(0, 0, 0, 0.8);
            border-top: 1px solid rgba(255, 94, 0, 0.2);
            padding: 40px 20px;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
        }

        .footer-links a {
            color: #52d737;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .footer-links a:hover {
            color: #5aff3d;
            text-shadow: 0 0 10px currentColor;
        }

        .copyright {
            opacity: 0.6;
            font-size: 0.9rem;
        }

        .copyright a {
            color: #52d737;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .copyright a:hover {
            color: #7bff60;
            text-shadow: 0 0 10px currentColor;
        }

        /* Scanlines effect */
        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            background: linear-gradient(
                transparent 50%,
                rgba(255, 94, 0, 0.01) 50%
            );
            background-size: 100% 4px;
            animation: scanlines 8s linear infinite;
            z-index: 2;
            pointer-events: none;
        }

        @keyframes scanlines {
            0% { transform: translateY(0); }
            100% { transform: translateY(10px); }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes float {
            0%, 100% { 
                transform: translateY(0);
                box-shadow: 0 0 30px rgba(0, 255, 51, 0.5);
            }
            50% { 
                transform: translateY(-10px);
                box-shadow: 0 10px 40px rgba(9, 255, 0, 0.7);
            }
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            nav {
                padding: 15px 20px;
            }

            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background: rgba(10, 10, 10, 0.95);
                flex-direction: column;
                align-items: center;
                justify-content: start;
                padding-top: 50px;
                transition: left 0.3s ease;
            }

            .nav-links.active {
                left: 0;
            }

            .menu-toggle {
                display: flex;
            }

            .hero-content {
                padding: 0 20px;
            }

            .glitch-text {
                font-size: clamp(1.2rem, 4.9vw, 2.4rem);
            }

            .text-rotator {
                min-height: 150px;
            }

            .subtitle {
                font-size: 1.2rem;
            }

            .cta-container {
                flex-direction: column;
                align-items: center;
            }

            .cta-button {
                width: 100%;
                max-width: 300px;
            }

            .features-container {
                grid-template-columns: 1fr;
            }

            .feature-tabs {
                display: block;
                padding: 20px;
                max-width: 100%;
            }

            .tab-item {
                width: 100%;
                margin-bottom: 10px;
            }

            .about-content,
            .contact-container {
                grid-template-columns: 1fr;
            }

            .about-graphic {
                width: 200px;
                height: 200px;
            }

            .shape-circle,
            .shape-triangle,
            .shape-square {
                transform: scale(0.6);
            }
        }

/* search.html */
.search-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 60px;
  border-radius: 120px;
  margin: 0 auto;
  /* 템플릿 상단과 겹치지 않게 여백 추가 */
  margin-top: 150px; 
  margin-bottom: 50px;
}

.search-icon, .go-icon {
  position: absolute;
  top: 0;
  height: 60px;
  width: 86px;
  line-height: 61px;
  text-align: center;
  /* 템플릿의 기본 폰트 색상을 따르거나, 흰색으로 강제 지정 */
  color: #FFFFFF; 
}

.search-icon {
  left: 0;
  pointer-events: none;
  font-size: 1.22em;
  will-change: transform;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform-origin: center center;
  transition: transform 400ms 220ms cubic-bezier(0.190, 1.000, 0.220, 1.000);
}

.si-rotate {
  transform: rotate(0deg);
}

.go-icon {
  right: 0;
  pointer-events: none;
  font-size: 1.38em;
  will-change: opacity;
  cursor: default;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 190ms ease-out, transform 260ms cubic-bezier(0.190, 1.000, 0.220, 1.000);
}

.go-in {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
  transform: rotate(0);
  transition: opacity 190ms ease-out, transform 260ms 20ms cubic-bezier(0.190, 1.000, 0.220, 1.000);
}

.search-border {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 60px;
}

.border {
  fill: none;
  stroke: #00ff2293;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.border {
  stroke-dasharray: 740;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 400ms cubic-bezier(0.600, 0.040, 0.735, 0.990);
}

.border-searching .border {
  stroke-dasharray: 740;
  stroke-dashoffset: 459;
  transition: stroke-dashoffset 650ms cubic-bezier(0.755, 0.150, 0.205, 1.000);
}

#search {
  font-family: 'Rajdhani', sans-serif; /* 템플릿 폰트로 변경 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 120px;
  border: none;
  background: rgba(255, 255, 255, 0);
  padding: 0 68px 0 68px;
  color: #FFFFFF;
  font-size: 1.32em;
  font-weight: 400;
  letter-spacing: -0.015em;
  outline: none;
}

#search::-webkit-input-placeholder { color: #FFFFFF; }
#search::-moz-placeholder { color: #FFFFFF; }
#search:-ms-input-placeholder { color: #FFFFFF; }
#search:-moz-placeholder { color: #FFFFFF; }
#search::-moz-selection { color: #FFFFFF; background: rgba(0, 0, 0, 0.25); }
#search::selection { color: #FFFFFF; background: rgba(0, 0, 0, 0.25); }

/* ========== 검색창(Search Box) 스타일 끝 ========== */

/* ========== 실시간 뉴스 섹션 (최종: 2열 정렬 + 이미지) ========== */

/* (섹션 여백 - 사용자님이 주신 코드) */
/* ========== 실시간 뉴스 섹션 (최종: 2열 + 헤더) ========== */

.news-features {
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 1. .news-container (DIV) - 겉모습(배경, 스크롤) 담당 */
.news-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(21, 255, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(10px);
    height: 600px; /* 고정 높이 500px */
    overflow-y: auto; 
}

/* 2. .news-list (UL) - 2열 그리드 레이아웃 담당 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2개의 동일한 너비의 컬럼 */
    grid-auto-flow: column; /* 세로(column)로 먼저 채움 */
    
    /* [수정] 헤더(1줄) + 뉴스(5줄) = 총 6줄 */
    grid-template-rows: repeat(6, auto); 
    
    gap: 10px 20px; /* 상하 10px, 좌우 20px 간격 */
}

/* 3. <li> 태그 (기본) */
.news-list li {
    margin-bottom: 0;
}

/* 4. [신규] <li> 헤더 스타일 */
.news-list .news-list-header {
    /* (<a> 태그와 패딩/정렬을 맞추기 위함) */
    padding: 15px 20px;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #99D98C; /* 템플릿의 활성 링크 색상 */
    border-bottom: 2px solid rgba(153, 217, 140, 0.3);
}

/* 5. <a> 태그 (뉴스 아이템 스타일) */
.news-list .tab-item {
    display: flex;
    align-items: center; 
    gap: 15px;
    padding: 15px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    color: #FFFFFF;
}

.news-list .tab-item:hover {
    background: rgba(0, 255, 38, 0.1);
    border-color: rgba(0, 255, 38, 0.3);
    color: #99D98C; 
}

/* 6. 썸네일 이미지 및 아이콘 스타일 */
.news-list .tab-icon,
.news-list .tab-icon-img {
    flex-shrink: 0; 
}
.news-list .tab-icon {
    font-size: 1.5rem;
}
.news-list .tab-icon-img {
    width: 45px;
    height: 45px;
    object-fit: cover; 
    border-radius: 4px;
}

.news-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #99D98C, #D9ED92);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* ========== 5. 검색 결과 스타일 (신규) ========== */

.search-results-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(21, 255, 0, 0.2);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.result-item {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-item h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-item h3 a {
    color: #99D98C; /* 템플릿의 활성 링크 색상 */
    text-decoration: none;
    transition: color 0.3s;
}

.result-item h3 a:hover {
    color: #FFFFFF;
}

.result-item p {
    color: #FFFFFF;
    opacity: 0.8;
    line-height: 1.6;
}

/* ========== 6. 페이지네이션 스타일 (신규) ========== */
.pagination-container {
    padding: 30px 0;
    text-align: center;
}

.page-btn {
    font-family: 'Orbitron', monospace;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 10px 15px;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #99D98C;
    color: #0a0a0a;
    border-color: #99D98C;
}

.page-btn.active {
    background: #99D98C;
    color: #0a0a0a;
    border-color: #99D98C;
    font-weight: 700;
}
/* ========== 7. 모달(팝업) 스타일 (스크롤 버그 수정) ========== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeInBackground 0.3s ease-out forwards;
}

@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

/* 팝업창 본체 */
.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(21, 255, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    width: 95%;
    
    /* ▼▼▼ [수정] 이 부분을 늘립니다 ▼▼▼ */
    max-width: 1400px; /* 예: 1200px -> 1400px */
    height: 95%; /* 예: 90% -> 95% (화면 높이에 맞게) */
    max-height: 600px; /* 예: 700px -> 800px (최대 높이 제한 증가) */
    /* ▲▲▲ [수정] 여기까지 ▲▲▲ */
    
    position: relative;
    box-shadow: 0 0 60px rgba(0, 255, 21, 0.4);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: #E0E0E0;
    font-size: 1.05rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column; 
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 닫기 버튼 */
.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #99D98C;
    font-size: 36px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* 팝업 제목 */
#modal-title {
    font-family: 'Orbitron', monospace;
    color: #99D98C;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 15px rgba(153, 217, 140, 0.6);
    border-bottom: 2px solid rgba(153, 217, 140, 0.1);
    padding-bottom: 15px;
    flex-shrink: 0; /* [핵심] 제목 높이는 고정 */
}

/* [수정] 모달 본문 컨테이너 */
#modal-body-container {
    display: flex;
    gap: 30px;
    flex-grow: 1; /* [핵심] 남은 모든 세로 공간을 차지함 */
    overflow: hidden; /* [핵심] 자식(컬럼)이 이 밖으로 못 나가게 함 */
}

/* 정보 컬럼 */
.modal-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* [핵심] 이제 부모 높이가 고정되어 스크롤이 작동함 */
    padding-right: 15px;
}

/* 그래프 컬럼 */
.modal-graph-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(153, 217, 140, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
}

/* 지도 컬럼 */
.modal-map-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(153, 217, 140, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
}

/* (이하 정보 그룹 스타일은 동일) */
.modal-info-group {
    margin-bottom: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #99D98C;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(153, 217, 140, 0.1);
    flex-shrink: 0;
}

.modal-info-group h4 {
    font-family: 'Orbitron', monospace;
    color: #D9ED92;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(217, 237, 146, 0.3);
}
.modal-info-group h4 .icon {
    color: #99D98C;
    font-size: 1.3em;
    line-height: 1;
}
.modal-info-group ul {
    list-style: none;
    padding-left: 0;
}
.modal-info-group li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: baseline;
}
.modal-info-group li:last-child {
    border-bottom: none;
}
.modal-info-group li strong {
    color: #FFFFFF;
    min-width: 90px;
    margin-right: 15px;
    opacity: 0.9;
}
.modal-info-group li span {
    flex-grow: 1;
    color: #E0E0E0;
    opacity: 0.8;
}

/* 플레이스홀더 텍스트 */
.placeholder-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin: 20px 0;
    font-style: italic;
    width: 100%;
}

/* 스크롤바 커스터마이징 */
.modal-info-column::-webkit-scrollbar {
    width: 8px;
}
.modal-info-column::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.modal-info-column::-webkit-scrollbar-thumb {
    background-color: rgba(153, 217, 140, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}
.modal-info-column::-webkit-scrollbar-thumb:hover {
    background-color: rgba(153, 217, 140, 0.6);
}

/* 모바일 반응형 */
@media (max-width: 900px) {
    .modal-content {
        flex-direction: column;
        height: 95%;
        max-height: unset;
    }
    #modal-body-container {
        flex-direction: column;
        overflow-y: auto; /* [수정] 모바일에선 전체 컨테이너가 스크롤됨 */
        padding-right: 0;
    }
    .modal-info-column {
        padding-right: 0;
        overflow-y: unset; /* [수정] 개별 컬럼 스크롤 해제 */
    }
    .modal-graph-column {
        min-height: 250px;
        flex-shrink: 0;
    }
}

/* [신규] 모달 내 거래 내역 목록 스타일 */
.transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* (스크롤바 스타일 - 목록용) */
.transaction-list-container::-webkit-scrollbar { width: 6px; }
.transaction-list-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.transaction-list-container::-webkit-scrollbar-thumb { background-color: rgba(153, 217, 140, 0.3); border-radius: 6px; }
.transaction-list-container::-webkit-scrollbar-thumb:hover { background-color: rgba(153, 217, 140, 0.5); }

/* 모달 정보 그룹 스타일 */
.modal-info-group {
    /* ... (기존 스타일) ... */
    /* [수정] 그룹 자체 패딩 조정 (선택 사항) */
    padding: 15px 20px;
}
/* ▼▼▼ [신규] 거래 내역 스크롤 컨테이너 ▼▼▼ */
.transaction-list-container {
    margin-top: 15px; /* 제목 아래 여백 */
    max-height: 300px; /* 그룹화된 목록 전체의 최대 높이 */
    overflow-y: auto; /* 목록이 길면 스크롤 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 목록 위 구분선 */
    padding-top: 10px; /* 구분선 위 여백 */
}

/* ▼▼▼ [신규] 평수 그룹 헤더 (h5) 스타일 ▼▼▼ */
h5.transaction-group-header {
    font-family: 'Rajdhani', sans-serif; /* 제목 폰트 */
    color: #FFFFFF; /* 흰색 */
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 5px 5px 5px; /* 패딩 조정 */
    margin-top: 15px; /* 이전 그룹과의 간격 */
    border-bottom: 1px solid rgba(153, 217, 140, 0.2); /* 연한 녹색 밑줄 */
}
h5.transaction-group-header:first-of-type {
    margin-top: 0; /* 첫 번째 그룹 헤더는 위쪽 마진 없음 */
}

/* ▼▼▼ [수정] 각 평수 그룹의 거래 목록 (ul) ▼▼▼ */
.transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* [삭제] max-height, overflow-y (부모 컨테이너가 처리) */
    /* [삭제] border-top (부모 컨테이너가 처리) */
}

/* ▼▼▼ [수정] 거래 항목 (li) 스타일 - grid 컬럼 변경 ▼▼▼ */
.transaction-list .transaction-item {
    display: grid;
    /* [수정] 평수 제거 -> 3열 (날짜, 층, 가격) */
    grid-template-columns: 1fr 0.8fr 1fr;
    gap: 10px;
    padding: 10px 5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.transaction-list .transaction-item:last-child {
    border-bottom: none;
}
.transaction-list .transaction-item:hover {
    background-color: rgba(0, 255, 38, 0.05);
}
.transaction-list .transaction-item span {
    color: #E0E0E0;
    opacity: 0.8;
    text-align: right;
}
.transaction-list .transaction-item span:first-child {
    text-align: left;
}

/* 그래프 컬럼 */
.modal-graph-column {
    flex: 1;
    background: rgba(0, 0, 0, 0.1); /* 배경 약간 더 어둡게 */
    border: 1px solid rgba(153, 217, 140, 0.1);
    border-radius: 8px;
    display: flex; /* 내부 canvas 정렬 */
    justify-content: center;
    align-items: center;
    padding: 20px; /* 내부 여백 추가 */
    overflow: hidden; 
    position: relative; /* canvas 크기 조정을 위해 */
}

/* canvas 태그 스타일 */
#priceChartCanvas {
    max-width: 100%;
    max-height: 100%;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  margin-left: auto;
  margin-right: auto;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}