/* Pretendard Font - System Fonts as Fallback */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* Tailwind Base Styles - Critical for file:// protocol */
* {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Font family matching React version */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out both;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.animate-icon-pulse {
    animation: icon-pulse 0.5s ease-in-out;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0) rotate(90deg);
    }
    50% {
        transform: translateY(5px) rotate(90deg);
    }
}

.animate-arrow-bounce {
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

/* Support section animations */
@keyframes float-bubble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes float-bubble-2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes float-bubble-3 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-12px) translateX(-3px);
    }
}

@keyframes float-code {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

@keyframes float-code-2 {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.9;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes pulse-dot-2 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.animate-float-bubble {
    animation: float-bubble 3s ease-in-out infinite;
}

.animate-float-bubble-2 {
    animation: float-bubble-2 4s ease-in-out infinite 0.5s;
}

.animate-float-bubble-3 {
    animation: float-bubble-3 3.5s ease-in-out infinite 1s;
}

.animate-float-code {
    animation: float-code 3s ease-in-out infinite;
}

.animate-float-code-2 {
    animation: float-code-2 4s ease-in-out infinite 0.8s;
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

.animate-pulse-dot-2 {
    animation: pulse-dot-2 2.5s ease-in-out infinite 0.5s;
}

.support-card {
    transition: transform 0.3s ease;
}

.support-card:hover {
    transform: scale(1.02);
}

.support-icon {
    transition: transform 0.3s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1) rotate(5deg);
}

.support-card-dev:hover .support-icon {
    transform: scale(1.1) rotate(-5deg);
}

.support-button {
    transition: transform 0.2s ease;
}

.support-button:hover {
    transform: scale(1.05);
}

.support-button:active {
    transform: scale(0.98);
}

/* Use case card hover scale */
.use-case-card {
    transition: transform 0.3s ease;
}

.use-case-card:hover {
    transform: scale(1.02);
}

@keyframes pulse-ring-continuous {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-pulse-ring-continuous {
    animation: pulse-ring-continuous 1s ease-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar on mobile menu when open */
body.menu-open {
    overflow: hidden;
}
