/* Additional custom styles for resume website */

/* Ensure smooth transitions throughout */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Dark mode specific styles */
html.dark body {
    background-color: #111827;
    color: #f3f4f6;
}

html.dark nav {
    background-color: #1f2937;
    border-bottom: 1px solid #374151;
}

html.dark input,
html.dark textarea {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #9ca3af;
}

html.dark .card {
    background-color: #1f2937;
}

/* Animation utilities */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

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

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Portfolio hover effects */
.portfolio-item {
    overflow: hidden;
}

.portfolio-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Skill bar animation */
.skill-fill {
    animation: fillSkill 1s ease-out forwards;
}

@keyframes fillSkill {
    from {
        width: 0 !important;
    }
    to {
        width: var(--skill-width) !important;
    }
}

/* Section title underline animation */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    border-radius: 2px;
    animation: slideRight 0.6s ease-out;
}

@keyframes slideRight {
    from {
        width: 0;
    }
    to {
        width: 64px;
    }
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

html.dark input:focus,
html.dark textarea:focus {
    ring-color: #a855f7;
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Navigation active state */
.nav-link.active {
    background-color: #3b82f6;
    color: white;
}

/* Mobile menu toggle (for future enhancement) */
@media (max-width: 768px) {
    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/* Print styles */
@media print {
    nav {
        display: none;
    }
    
    .portfolio-item {
        page-break-inside: avoid;
    }
    
    section {
        page-break-inside: avoid;
    }
}

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

/* Form Validation Styles */
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
}

.success-message {
    display: block;
    color: #059669;
    font-size: 0.875rem;
    margin-top: 12px;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #059669;
}
