/* ===================================
   INDEMNIZEN - Custom Styles
   Modern, Clean, Professional Design
   =================================== */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b3a4c;
}

/* Navigation Styles */
#navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e3a5f, #8b3a4c);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary-nav {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.3);
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b3a4c 0%, #a94d61 100%);
    color: white;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(139, 58, 76, 0.3);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 58, 76, 0.4);
    background: linear-gradient(135deg, #a94d61 0%, #8b3a4c 100%);
}

.btn-primary-large {
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #8b3a4c 0%, #a94d61 100%);
    color: white;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(139, 58, 76, 0.3);
    display: inline-flex;
    align-items: center;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(139, 58, 76, 0.4);
    background: linear-gradient(135deg, #a94d61 0%, #8b3a4c 100%);
}

.btn-secondary-large {
    padding: 1.125rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Service Cards */
.service-card {
    padding: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a5f, #8b3a4c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #8b3a4c;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Process Cards */
.process-card {
    padding: 2rem;
    background: linear-gradient(135deg, #faf9f6 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 300px;
}

.process-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #8b3a4c;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
}

/* Scroll to Top Button */
#scroll-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1e3a5f 0%, #8b3a4c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Success Message */
.success-message {
    padding: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    animation: fadeInDown 0.5s ease;
}

/* Error Message */
.error-message {
    padding: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    animation: fadeInDown 0.5s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: fadeInDown 0.3s ease;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Print Styles */
@media print {
    nav,
    #scroll-to-top,
    footer {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-primary-large {
        border: 2px solid white;
    }
    
    .service-card {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid #8b3a4c;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: #8b3a4c;
    color: white;
}

::-moz-selection {
    background: #8b3a4c;
    color: white;
}

/* Smooth Transitions for Dark Mode (Future) */
body,
nav,
section,
.service-card,
.blog-card {
    transition: background-color 0.3s ease, color 0.3s ease;
}