/* Custom styles to complement TailwindCSS */

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

/* Smooth scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Card hover animations */
.experience-card {
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear 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;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Introduction section gradient - default */
.intro-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
}

/* Experience cards - default styles */
.experience-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.experience-title {
    color: #1f2937;
}

.experience-company {
    color: #2563eb;
}

.experience-meta {
    color: #6b7280;
}

.experience-description {
    color: #374151;
}

.experience-achievements-title {
    color: #1f2937;
}

.experience-achievement {
    color: #374151;
}

/* Pricing section - default styles */
.pricing-section {
    background: #f9fafb;
}

.pricing-subtitle {
    color: #6b7280;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.pricing-card-highlighted {
    border: 2px solid #2563eb !important;
    transform: scale(1.05);
}

.pricing-badge {
    background: #2563eb;
    color: #ffffff;
}

.pricing-package-name {
    color: #1f2937;
}

.pricing-description,
.pricing-currency,
.pricing-unit,
.pricing-feature,
.pricing-notes {
    color: #6b7280;
}

.pricing-price {
    color: #1f2937;
}

.pricing-checkmark {
    color: #10b981;
}

.pricing-button-primary {
    background: #2563eb;
    color: #ffffff;
}

.pricing-button-primary:hover {
    background: #1d4ed8;
}

.pricing-button-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.pricing-button-secondary:hover {
    background: #d1d5db;
}

/* Mobile menu transition */
.mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Skills tag animation */
.skill-tag {
    transition: all 0.2s ease;
}

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

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

/* Responsive utilities */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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

/* Tag filter button active state */
.tag-active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Pricing card highlight effect */
.pricing-highlight {
    position: relative;
    overflow: hidden;
}

.pricing-highlight::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;
}

.pricing-highlight:hover::before {
    left: 100%;
}

/* Social icon hover effects */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Contact form button loading state */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Error and success message animations */
.alert-enter {
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Filter tags styling - will be themed by each theme */
.filter-tag {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border: 2px solid var(--secondary);
}

.filter-clear-button {
    background-color: #ef4444;
    color: white;
    font-weight: 500;
}

.filter-clear-button:hover {
    background-color: #dc2626;
}

/* Accessibility improvements */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Dark mode support (optional, can be enabled later) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    */
}
