/* Custom styles for Portfolio Website */

/* General */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.min-vh-25 {
    min-height: 25vh;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
}

.nav-link.active {
    font-weight: 500;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

/* Skill proficiency dots */
.skill-dots {
    display: inline-flex;
    gap: 4px;
}

.skill-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    display: inline-block;
}

.skill-dots .dot.filled {
    background-color: #0d6efd;
}

[data-bs-theme="dark"] .skill-dots .dot {
    background-color: #495057;
}

[data-bs-theme="dark"] .skill-dots .dot.filled {
    background-color: #0d6efd;
}

/* Smaller dots for compact views */
.skill-dots-sm .dot {
    width: 8px;
    height: 8px;
}

/* Colored tooltips for skill levels */
.tooltip-secondary .tooltip-inner {
    background-color: #6c757d;
}
.tooltip-secondary .tooltip-arrow::before {
    border-left-color: #6c757d;
}

.tooltip-info .tooltip-inner {
    background-color: #0dcaf0;
    color: #000;
}
.tooltip-info .tooltip-arrow::before {
    border-left-color: #0dcaf0;
}

.tooltip-primary .tooltip-inner {
    background-color: #0d6efd;
}
.tooltip-primary .tooltip-arrow::before {
    border-left-color: #0d6efd;
}

.tooltip-success .tooltip-inner {
    background-color: #198754;
}
.tooltip-success .tooltip-arrow::before {
    border-left-color: #198754;
}

/* Forms */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .btn-outline-dark {
    color: #f8f9fa;
    border-color: #f8f9fa;
    transition: color 0.1s ease, border-color 0.1s ease, background-color 0.1s ease;
}

[data-bs-theme="dark"] .btn-outline-dark:hover {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--bs-dark) !important;
}

[data-bs-theme="dark"] .project-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .navbar {
    border-bottom: 1px solid #495057;
}

[data-bs-theme="dark"] footer {
    border-top: 1px solid #495057;
}

[data-bs-theme="dark"] .btn-outline-dark {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

[data-bs-theme="dark"] .btn-outline-dark:hover {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

/* Print styles for resume */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }
}
