/* code_portfolio/static/code_portfolio/css/style.css */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 76px; /* For fixed navbar */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0b5ed7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

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

/* Hero Section */
.hero-section {
    padding: 5rem 0;
}

.hero-image {
    max-height: 400px;
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Skill Cards */
.skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    margin-bottom: 1rem;
    margin-left: auto;  /* Add these two lines */
    margin-right: auto; /* to center the container */
}

/* Contact Form */
.contact-form-container {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Timeline for Experience */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
}

/* Code Highlighting */
pre {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
}

/* Rich Text Content */
.rich-text-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

.rich-text-content h2, 
.rich-text-content h3, 
.rich-text-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-text-content ul, 
.rich-text-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rich-text-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    color: #6c757d;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -20px;
        width: 15px;
        height: 15px;
    }
}

.project-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    z-index: 1;
}

.project-card .card-img-top {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

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

/* Add a subtle glow effect on hover */
.project-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px 5px rgba(13, 110, 253, 0.15);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smoothly lift the footer buttons on card hover */
.project-card:hover .card-footer .btn {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.project-card .card-footer .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}