/* Custom Styles for Kristiina Hormigo Microsite */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #c9a860 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom shadow effects */
.shadow-accent {
    box-shadow: 0 10px 40px rgba(201, 168, 96, 0.3);
}

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form focus states */
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0f172a;
    border-radius: 6px;
}

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

/* Timeline connector on mobile */
@media (max-width: 768px) {
    .timeline-mobile::before {
        content: '';
        position: absolute;
        left: 2rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #14b8a6;
    }
}

/* Button hover effects */
button, a.btn {
    position: relative;
    overflow: hidden;
}

button::before, a.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, a.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading animation for form submission */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* Success/Error messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

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

/* Logo animation */
.logo-animate {
    animation: float 3s ease-in-out infinite;
}

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

/* Star rating styling */
.rating-stars {
    color: #c9a860;
    letter-spacing: 2px;
}

/* Responsive typography */
@media (max-width: 640px) {
    h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    nav, footer, #contact {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 3px solid #c9a860;
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0f172a;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
