/* Custom CSS for Portfolio Website */

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
}

/* Base Styles */
* {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.nav-link {
    color: #64748b;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #1e40af;
    background-color: #eff6ff;
}

/* Button Styles */
.btn-primary {
    background-color: #1e40af;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: scale(1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: scale(1);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
    transform: scale(1.05);
}

/* Skill Tags */
.skill-tag {
    cursor: pointer;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Experience Cards */
.experience-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1e40af;
    transition: box-shadow 0.3s ease;
}

.experience-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Project Cards */
.project-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.5rem);
}

.project-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.project-link {
    color: #1e40af;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    color: #1d4ed8;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation for Icons */
.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #1e40af }
}

/* Skill Progress Bars */
.skill-progress {
    height: 0.5rem;
    background-color: #1e40af;
    border-radius: 9999px;
    transition: all 1s ease-out;
    width: 0%;
}

/* Hero Section Gradient Animation */
.hero-gradient {
    background: linear-gradient(-45deg, #3b82f6, #1e40af, #1e3a8a, #312e81);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

/* Additional Hover Effects */
.experience-card:hover {
    transform: translateX(5px);
}

.skill-tag:hover {
    background-color: #1e40af;
    color: white;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.project-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px #1e40af;
}

/* Additional Interactive Elements */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .page-break {
        page-break-before: always;
    }
}
