/* ============================================
   CUSTOM STYLES FOR PORTFOLIO WEBSITE
   This file contains additional styles that complement Tailwind CSS
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2D3748;
    overflow-x: hidden;
}

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

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

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

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

/* Navigation Styles */
.nav-link {
    position: relative;
    color: #4A5568;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #FF6B6B;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B6B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    color: #4A5568;
    font-weight: 500;
    padding: 0.75rem 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid #FFD6D6;
}

.mobile-nav-link:hover {
    color: #FF6B6B;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #FF6B6B, #FFE5E5);
    margin: 0 auto;
    border-radius: 2px;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background-color: #FF6B6B;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
}

.btn-primary:hover {
    background-color: #E63946;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background-color: white;
    color: #FF6B6B;
    font-weight: 600;
    border: 2px solid #FF6B6B;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.3);
}

/* Skill Cards */
.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #FFD6D6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.15);
    border-color: #FF6B6B;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #FFD6D6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.2);
    border-color: #FF6B6B;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 107, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    color: #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
    background: #2D3748;
    color: white;
}

.tech-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: #FFE5E5;
    color: #FF6B6B;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #FF6B6B;
    color: white;
}

/* Timeline Cards */
.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #FF6B6B;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
}

.timeline-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6B6B, #FFE5E5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-date {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: #FFE5E5;
    color: #FF6B6B;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #FFD6D6;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-input::placeholder {
    color: #A0AEC0;
}

/* Social Links */
.social-link {
    width: 48px;
    height: 48px;
    background: white;
    color: #FF6B6B;
    border: 2px solid #FFD6D6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #E63946;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .project-image-wrapper {
        height: 200px;
    }
    
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Loading Animation */
.loading {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #FF6B6B, #FFE5E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.1);
}

/* Print Styles */
@media print {
    .scroll-top-btn,
    nav,
    footer {
        display: none;
    }
}