/* CSS Variables */
html,
body,
:root {
    scroll-behavior: auto !important;
}

:root {
    --primary-color: #47a0d8;
    /* User specified logo color */
    --secondary-color: #2b70a5;
    /* Deep Blue for subtle gradient */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-color: #ffffff;
    --text-muted: #888888;
    --font-main: 'Noto Sans KR', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.font-orbitron {
    font-family: var(--font-display);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white-50 {
    color: var(--text-muted) !important;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    /* Slight dim to ensure text readability */
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0);
    /* Transparent initially */
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
#home {
    background: transparent;
    /* Changed to transparent to see canvas */
}

.z-index-1 {
    z-index: 1;
}

/* Scroll Down Indicator */
.scrolldown {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
}

.chevrons {
    padding: 6px 0 0 0;
    margin-left: -3px;
    margin-top: -6px;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chevrondown {
    margin-top: -6px;
    position: relative;
    border: solid var(--primary-color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 10px;
    transform: rotate(45deg);
    animation: chevron-pulse 2s infinite;
}

.chevrondown:nth-child(odd) {
    animation-delay: 500ms;
}

@keyframes chevron-pulse {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* General Section Styles */
.section-padding {
    padding: 100px 0;
}

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

.section-header .divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin-top: 20px;
}

/* About Section */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(71, 160, 216, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(71, 160, 216, 0.5);
}

.profile-list li {
    font-size: 1.1rem;
}

/* Portfolio Section */
.portfolio-item {
    cursor: pointer;
}

.portfolio-img-placeholder {
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img-placeholder {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-content p {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-content h5,
.portfolio-item:hover .portfolio-content p {
    transform: translateY(0);
}

/* History Timeline */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    /* Adjust based on layout */
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    width: 100px;
    text-align: right;
    padding-right: 30px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--primary-color);
    font-size: 1.2rem;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 8px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(145deg, #0e0e0e, #050505);
    box-shadow: 20px 20px 60px #040404, -20px -20px 60px #161616;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar {
        background: rgba(5, 5, 5, 0.95);
        /* Solid background on mobile */
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 5px;
        padding-left: 40px;
    }

    .timeline-year::after {
        left: 15px;
        right: auto;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-content {
        padding-left: 40px;
    }
}

/* Innovation Section (Target Breaker Teaser) */
.innovation-bg-circle {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(71, 160, 216, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.teaser-image-container {
    position: relative;
    display: inline-block;
}

.teaser-img {
    position: relative;
    z-index: 2;
    max-height: 500px;
    filter: drop-shadow(0 0 30px rgba(71, 160, 216, 0.2));
    transition: transform 0.5s ease;
}

.teaser-image-container:hover .teaser-img {
    transform: scale(1.02) translateY(-5px);
}

.teaser-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(71, 160, 216, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    filter: blur(20px);
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.btn-primary-custom:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(71, 160, 216, 0.5);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    border-color: var(--primary-color);
}