/* Custom CSS for Vy Hoang Portfolio */

:root {
    --pale-blue: #E8F4FD;
    --pale-pink: #FDF2F8;
    --pale-green: #F0FDF4;
    --primary-blue: #3B82F6;
    --primary-pink: #EC4899;
    --primary-green: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

/* Custom Text Colors */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-pink {
    color: var(--primary-pink) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--pale-pink) 50%, var(--pale-green) 100%);
    padding: 2rem 0;
}

.hero-stats {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink), var(--primary-green));
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

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

/* Experience Cards */
.experience-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.experience-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
}

.experience-card .card-subtitle {
    font-weight: 500;
    font-size: 0.95rem;
}

.year-badge {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.tech-badge {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.tech-badge:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.project-links {
    margin-top: auto;
    padding-top: 1rem;
}

.project-links .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: white;
}

/* Skills Cards */
.skills-card {
    border-left: 4px solid var(--primary-pink);
    background: linear-gradient(135deg, #ffffff 0%, var(--pale-pink) 100%);
}

.skill-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Education Card */
.education-card {
    border-left: 4px solid var(--primary-green);
    background: linear-gradient(135deg, #ffffff 0%, var(--pale-green) 100%);
}

.education-icon {
    padding: 2rem;
    background: var(--pale-blue);
    border-radius: 50%;
    display: inline-block;
}

/* Contact Section */
.contact-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--pale-blue);
    transform: translateY(-3px);
}

.contact-item h5 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
}

/* Project Toggle Animation */
#additional-projects {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

#additional-projects.show {
    opacity: 1;
    transform: translateY(0);
}

#view-all-projects-btn {
    transition: all 0.3s ease;
}

#btn-icon {
    transition: transform 0.3s ease;
}

#view-all-projects-btn.expanded #btn-icon {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .fs-5 {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-green));
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* List Styles */
.list-unstyled li {
    padding: 0.25rem 0;
}

/* Footer */
footer {
    background: var(--pale-blue) !important;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* About Me Section */
.about-feature {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.feature-icon {
    padding: 1rem;
    background: var(--pale-blue);
    border-radius: 50%;
    display: inline-block;
    margin: 0 auto;
}

.about-stats h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-stats p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Section Background Colors */
#about {
    background: linear-gradient(135deg, var(--pale-blue) 0%, #ffffff 50%, var(--pale-pink) 100%);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}
