/* Additional custom styles for the portfolio */

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

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

/* Hover effects */
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Profile image hover effect */
#profileImage:hover {
    transform: scale(1.05);
}

/* Social links hover animation */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Navigation button active state animation */
.nav-button {
    position: relative;
    overflow: hidden;
}

.nav-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;
}

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

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .portfolio-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-buttons {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .profile-image {
        width: 8rem;
        height: 8rem;
    }
    
    h1 {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .about-text {
        font-size: 0.875rem;
    }
    
    .contact-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .profile-image {
        width: 6rem;
        height: 6rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 2rem;
        height: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Dark theme specific adjustments */
body {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Card hover effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Text selection */
::selection {
    background: #f59e0b;
    color: #1f2937;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Improved focus visibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

/* Remove focus outline for non-keyboard users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-dark {
        background-color: #000000;
    }
    
    .text-gray-400 {
        color: #cccccc;
    }
    
    .bg-card-bg {
        background-color: #1a1a1a;
        border: 1px solid #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .social-link,
    .nav-button,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
