/* Additional custom styles */

/* Gradient text effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 20px rgba(139, 90, 60, 0.3);
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Split screen effect */
.split-container {
    display: flex;
    height: 100vh;
}

.split-left, .split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.5s ease;
}

.split-left:hover, .split-right:hover {
    flex: 2;
}

/* Morphing button */
.morph-button {
    position: relative;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.morph-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.morph-button:hover::before {
    left: 100%;
}

.morph-button:hover {
    border-radius: 50px;
    transform: scale(1.05);
}

/* Animated background */
.animated-bg {
    background: linear-gradient(-45deg, #FDF6E3, #F7F3E9, #E8DCC6, #D4A574);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Neumorphism */
.neumorphism {
    background: var(--bg-cream);
    box-shadow: 20px 20px 60px #d6d1c7, -20px -20px 60px #ffffff;
}

/* Text effects */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.text-glow {
    text-shadow: 0 0 10px rgba(139, 90, 60, 0.5);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Loading animations */
.loading-dots::after {
    content: '';
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-warm);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection color */
::selection {
    background: rgba(139, 90, 60, 0.3);
    color: var(--text-dark);
}

/* Print styles */
@media print {
    .nav, .footer {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-cream: #1a1a1a;
        --bg-warm: #2d2d2d;
        --text-dark: #f0f0f0;
        --text-light: #cccccc;
        --white: #2d2d2d;
    }
}