/* 든든케어 Custom Styles */

/* CSS Variables */
:root {
    --primary-green: #2E7D32;
    --primary-orange: #FF6B35;
    --bg-light: #F3F7FB;
    --bg-dark: #17202A;
    --text-primary: #212121;
    --text-secondary: #71717A;
    --text-muted: #A1A1AA;
    --kakao-yellow: #FEE500;
    --border: #E4E4E7;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Styles */
#header {
    transition: all 0.4s ease-in-out;
}

#header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header.hidden {
    transform: translateY(-100%);
}

/* Smooth Scrolling for Navigation Links */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button Animations */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Floating Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Section Padding Adjustment for Fixed Header */
section {
    scroll-margin-top: 80px;
}

/* Hero Section Animations */
.hero-bg-image {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    animation: overlayPulse 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.80;
    }
    50% {
        opacity: 0.70;
    }
}

/* Hero Content Animation */
#hero .relative {
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Title Animation */
#hero h1 {
    animation: titleSlideIn 1s ease-out 0.3s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Subtitle Animation */
#hero p {
    animation: subtitleFadeIn 1s ease-out 0.6s both;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero CTA Buttons Animation */
#hero .flex.gap-4 {
    animation: ctaButtonsIn 1s ease-out 0.9s both;
}

@keyframes ctaButtonsIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Animation for CTA Buttons */
#hero .bg-orange-500 {
    animation: floatButton 3s ease-in-out infinite;
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Section Background Pattern */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px
        );
    pointer-events: none;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(20px);
    }
}

/* Process Section Styles */
.process-step {
    position: relative;
}

/* Hide arrow for last step */
.process-step:last-child .process-arrow {
    display: none !important;
}

/* Process Section Arrow Animation */
.process-arrow {
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Remove horizontal scroll indicator - no longer needed */

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Service Section Icon Hover */
.service-icon {
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

/* Trust Cards */
.trust-card {
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.trust-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%);
        opacity: 0;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Space for mobile CTA */
    }
    
    section {
        scroll-margin-top: 60px;
    }
    
    .floating-buttons {
        bottom: 100px; /* Above mobile CTA */
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Accessibility Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    .floating-buttons,
    .mobile-cta {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Typography Enhancements */
.heading-xl {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.heading-lg {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.heading-md {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .heading-xl {
        font-size: 2.5rem;
    }
    
    .heading-lg {
        font-size: 1.875rem;
    }
    
    .heading-md {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-medium {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-large {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}