/* Main CSS file for Developer Portfolio */

:root {
    /* Color scheme */
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    /*--accent-color: #dc3545; !* Red accent color *!*/
    --accent-color: #DB1E1E; /* Red accent color */
    --text-color: #212529;
    --light-text: #6c757d;
    --border-color: #dee2e6;

    /* Typography */
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-code: 'Source Code Pro', monospace;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: var(--text-color);
}

.logo a:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c82333;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Cards */
.card {
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    flex: 1;
    padding: 0 1rem;
}

.col-2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 1rem;
}

.col-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 1rem;
}

.col-4 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 1rem;
}

/* CV Page Specific Styles */
.profile {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
    border: 2px solid var(--accent-color);
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.skill-tag {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.experience-company {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-date {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Certifications Page Specific Styles */
.cert-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.cert-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 1.5rem;
}

.cert-info {
    flex: 1;
}

.cert-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cert-org {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--light-text);
    font-size: 0.875rem;
}

.cert-verify {
    margin-left: 1rem;
}

/* Conferences Page Specific Styles */
.conference-item {
    margin-bottom: 2rem;
}

.conference-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.conference-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.conference-place {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.conference-date {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.conference-links {
    display: flex;
    gap: 1rem;
}

/* Positions and Cases Page Specific Styles */
.position-item {
    margin-bottom: 2rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1.5rem;
}

.position-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.position-org {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.position-date {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.position-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.position-description.expanded {
    max-height: 1000px;
}

.toggle-description {
    cursor: pointer;
    color: var(--accent-color);
    font-weight: 500;
}

/* Projects Page Specific Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Project Detail Page */
.project-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-screenshots {
    margin-top: 2rem;
}

.screenshot {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* PDF CV Page Specific Styles */
.pdf-cv {
    width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
}

.pdf-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.pdf-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.pdf-section {
    margin-bottom: 1.5rem;
}

.pdf-section-title {
    font-size: 1.25rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.pdf-skills-list {
    display: flex;
    flex-direction: row;
}

.pdf-skills-list p{
    flex: 1;
}

.pdf-workplace-minor-data {
        color: var(--light-text);
}
/* Typography Page Specific Styles */
.typography-section {
    margin-bottom: 3rem;
}

.typography-title {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.code-block {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-code);
    margin-bottom: 1rem;
    overflow-x: auto;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--light-text);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--light-text);
}

/* Responsive styles */
@media (max-width: 992px) {
    .col-3, .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .col-2, .col-3, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cert-item {
        flex-direction: column;
        text-align: center;
    }

    .cert-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cert-verify {
        margin-left: 0;
        margin-top: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 2rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Print styles for PDF CV */
@media print {
    body {
        background-color: white;
    }

    header, footer, .btn {
        display: none;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .pdf-cv {
        padding: 0;
    }

    .pdf-no-wrap {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
