html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --heading-color: #343a40;
}

body.dark-mode {
    --bg-color: #1e1e1e;
    --text-color: #f5f5f5;
    --heading-color: #ffffff;
}

    body.dark-mode .card {
        background-color: #2c2c2c;
        color: #ffffff;
    }

    body.dark-mode .card-title,
    body.dark-mode .skill-item,
    body.dark-mode .skill-item p {
        color: #ffffff !important;
    }

        body.dark-mode .card-title,
        body.dark-mode .skill-item p {
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        }


    body.dark-mode .project-card,
    body.dark-mode .project-card .card-body {
        background-color: #2c2c2c;
        color: #ffffff;
    }

        body.dark-mode .project-card .card-title,
        body.dark-mode .project-card .card-text {
            color: #ffffff !important;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        }

        body.dark-mode .project-card .overlay .btn {
            background-color: #ffffff;
            color: #000000;
        }


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

h1, h2 {
    color: var(--heading-color);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.project-card a.btn:focus,
.project-card a.btn:active,
.project-card a.btn:visited {
    outline: none !important;
    box-shadow: none !important;
    background-color: white !important;
    color: black !important;
}

.card {
    transition: transform 0.2s ease;
    height: 100%;
}

    .card:hover {
        transform: scale(1.03);
    }

.project-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

    .project-card .card-body {
        flex-grow: 1;
        padding: 1rem;
        overflow: visible;
    }

.card-title,
.card-text {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    font-size: 1rem;
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card:hover .overlay,
.project-card:focus-within .overlay {
    opacity: 1;
}

.project-card .overlay .btn {
    font-weight: bold;
    background-color: white;
    color: black;
    border-radius: 30px;
    padding: 10px 25px;
}

.hero-section {
    height: 100vh;
    background: url('/images/bg.gif') no-repeat center center/cover;
    position: relative;
}

    .hero-section > div {
        padding: 20px;
    }

    .hero-section h1,
    .hero-section p,
    .hero-section a {
        color: white;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    }

img.rounded-circle {
    border: 4px solid white;
    transition: transform 0.3s ease;
    object-fit: cover;
}

    img.rounded-circle:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.timeline {
    border-left: 3px solid #0d6efd;
    padding-left: 20px;
    margin-left: 10px;
    position: relative;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: -9px;
        top: 0;
        height: 100%;
        width: 18px;
        background: #f8f9fa;
    }

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

    .timeline-item::before {
        content: "";
        position: absolute;
        left: -27px;
        top: 5px;
        width: 15px;
        height: 15px;
        background-color: #0d6efd;
        border-radius: 50%;
        border: 3px solid white;
    }

.skill-item {
    word-wrap: break-word;
    text-align: center;
    padding: 10px;
    min-width: 100px;
    font-size: 1rem;
}

    .skill-item p {
        margin-top: 8px;
        font-size: 0.95rem;
        word-break: break-word;
    }
