/* Work Page Styles */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.section-title {
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.row {
    row-gap: 2rem;
}

.skill-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.skill-card h3 {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.badge-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.category-section {
    margin-bottom: 5rem;
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
}

/* Profile Card Styles */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: none;
    margin-bottom: 2rem;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.profile-bio {
    color: #64748b;
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

body #darkModeToggle {
    background-color: white;
    border: none;
}

/* Home Button */
.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background-color: white;
    border: none;
    text-decoration: none;
    color: #1e293b;
}

.home-button:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e0e0e0;
}

body.dark-mode .skill-card,
body.dark-mode .profile-card {
    background-color: #1e293b;
    color: #e0e0e0;
    border: 1px solid #334155;
}

body.dark-mode .skill-card h3,
body.dark-mode .profile-name {
    color: #f1f5f9;
}

body.dark-mode .skill-card p,
body.dark-mode .profile-bio,
body.dark-mode .info-item {
    color: #94a3b8;
}

body.dark-mode .category-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

body.dark-mode .badge-custom {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

body.dark-mode .profile-title {
    color: #a78bfa;
}

body.dark-mode .info-item a {
    color: #94a3b8;
}

body.dark-mode .info-item a:hover {
    color: #a78bfa;
}

body.dark-mode #darkModeToggle {
    background-color: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .home-button {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
}

body.dark-mode .home-button:hover {
    color: #a78bfa;
}

/* CV Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* CV Modal Styling */
.modal-content {
    border: none;
}

body.dark-mode .modal-content {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
}

body.dark-mode .modal-header {
    border-bottom-color: #334155;
}

body.dark-mode .modal-footer {
    border-top-color: #334155;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

body.dark-mode .btn-secondary {
    background-color: #334155;
    border-color: #334155;
}

body.dark-mode .btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
}

.modal-body embed {
    background: white;
}

/* Custom modal size for A4 aspect ratio */
#cvModal .modal-dialog {
    max-width: 900px;
    height: 95vh;
    margin: 1.75rem auto;
}

#cvModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#cvModal .modal-body {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

#cvModal .safari-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #ffc107;
}

body.dark-mode #cvModal .safari-notice {
    background-color: #4a3f1f;
    color: #ffc107;
    border-bottom-color: #856404;
}

@media (max-width: 768px) {
    #cvModal .modal-dialog {
        max-width: 95%;
        height: 90vh;
        margin: 1rem auto;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 50px 0;
    }

    .profile-card {
        padding: 2rem 1.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-title {
        font-size: 1.1rem;
    }

    .profile-info {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}
