/* General Body Styles */
body {
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    color: #e0e0e0; /* Light grey for general text */
    background-color: #1a1a1a; /* Dark background */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #ffffff; /* White for headings */
}

/* Text Colors */
.text-orange {
    color: #FF8C00 !important; /* DarkOrange */
}

.text-yellow {
    color: #e6db74 !important; /* Monokai Yellow for strings */
}

.text-white {
    color: #ffffff !important;
}

.bg-dark {
    background-color: #1a1a1a !important;
}

.bg-light-dark {
    background-color: #222222 !important;
}

/* Navbar Styles */
.navbar {
    background-color: transparent;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    transition: all 0.4s ease-in-out;
    box-shadow: none;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: #FF8C00 !important; /* Orange brand name */
}

.navbar-nav .nav-link {
    color: #ffffff; /* White links */
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #FF8C00; /* Orange on hover/active */
}

/* Hero Section */
.hero-section {
    background-color: #000;
    min-height: 100vh;
    position: relative;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    animation: fadeInDown 1.2s ease-out forwards;
}

.hero-section .slogan {
    font-weight: 300;
    letter-spacing: 12px; /* 자간을 더 넓게 설정 */
    text-transform: uppercase;
    opacity: 0;
    filter: blur(10px); /* 초기 상태 블러 처리 */
    animation: sloganReveal 2.5s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards; /* 강화된 애니메이션 적용 */
}

.hero-section p.lead {
    font-size: 1.5rem;
}

/* Buttons */
.btn-orange {
    background-color: #FF8C00;
    border-color: #FF8C00;
    color: #ffffff;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e67e00; /* Slightly darker orange */
    border-color: #e67e00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Section Padding */
section {
    padding: 80px 0;
}

/* Business Cards */
.business-card {
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.business-card .card-title {
    color: #FF8C00;
    font-weight: 600;
    margin-top: 15px;
}

.business-card .card-text {
    color: #cccccc;
}

/* Code Block in Technology Section */
.code-block {
    background-color: #272822; /* Monokai Background */
    border: 1px solid #3e3d32;
    border-radius: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9rem;
    color: #f8f8f2;
    overflow-x: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    padding: 45px 20px 25px 20px !important;
}

/* Editor Window Buttons (Red, Yellow, Green) */
.code-block::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: #ff5f56;
    border-radius: 50%;
    box-shadow: 22px 0 0 #ffbd2e, 44px 0 0 #27c93f;
}

.code-block pre {
    margin: 0;
    padding: 0;
}

.code-block code {
    display: block;
    white-space: pre-wrap; /* Ensures code wraps */
}

/* Typewriter Cursor */
.code-block code::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
    color: #FF8C00;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.code-block .text-orange {
    color: #FF8C00; /* Highlight keywords */
}

.tech-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Contact Form */
.form-control {
    background-color: #333333;
    border: 1px solid #555555;
    color: #ffffff;
}

.form-control::placeholder {
    color: #aaaaaa;
}

.form-control:focus {
    background-color: #444444;
    border-color: #FF8C00;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
    color: #ffffff;
}

.form-label {
    color: #ffffff;
    font-weight: 500;
}

/* Social Icons */
.social-icons a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FF8C00;
}

/* Footer */
footer {
    background-color: #000000;
    color: #888888 !important;
    padding: 20px 0;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Liquid Flow Animation for Background Blur */
@keyframes liquid-flow {
    0% {
        transform: rotate(0deg) scale(1) translate(0, 0);
    }
    33% {
        transform: rotate(8deg) scale(1.1) translate(5%, 5%);
    }
    66% {
        transform: rotate(-8deg) scale(0.9) translate(-5%, 8%);
    }
    100% {
        transform: rotate(4deg) scale(1.05) translate(3%, -3%);
    }
}

/* Enhanced Slogan Animation: Blur + Letter Spacing + Fade */
@keyframes sloganReveal {
    0% {
        opacity: 0;
        filter: blur(12px);
        letter-spacing: 20px; /* 넓은 자간에서 시작하여 좁혀짐 */
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        letter-spacing: 12px;
        transform: translateY(0);
    }
}

/* Hero Title Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    .navbar-nav .nav-link {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    section {
        padding: 60px 0;
    }
}
