* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #111B21;
    color: #E9edef;
    font-weight: 500;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    margin: 0;
    padding: 10px;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, pre, header {
    color: #e9edef;
}

header, footer {
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.2s;
    border: 1px solid rgba(37, 211, 102, 0.2);
    width: 97%;
    margin: 0 auto;
}

.navigation {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.navig {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #111b21;
    transition: transform 0.2s, background 0.2s;
    background: #00a884;
    font-weight: bold;
}

.navig:hover {
    background: #005c4b;
    color: #e9edef;
}

.card {
    background: #1F2937;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(37, 211, 102, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card a {
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 10px;
    background: #00a884;
    color: black;
    border-radius: 6px;
    font-weight: 500;
    margin-top: auto;
    transition: background 0.2s, color 0.2s;
}

.card a:hover {
    background: #005c4b;
    color: #e9edef;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.container {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s;
    border: 1px solid rgba(37, 211, 102, 0.2);
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.image {
    width: 28%;
    max-width: 280px;
    border-radius: 10px;
    margin-right: 25px;
    flex-shrink: 0;
    object-fit: cover;
}

.text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio {
    margin: 0;
    font-weight: 500;
    font-family: 'Times New Roman', Times, serif;
    color: #E5E7EB;
    font-size: large;
    line-height: 1.5;
}

.resume {
    text-align: center;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    background: #00a884;
    max-width: 100%;
    align-self: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.resume:hover {
    background: #005c4b;
}

.headings {
    text-align: center;
    display: block;
    padding: 10px;
    border-radius: 10px;
    font-weight: 500;
    margin: 20px auto;
    width: 60%;
}

a {
    text-decoration: none;
    color: #E5E7EB;
}

section {
    padding: 10px;
}

.timeline-container {
    position: relative;
    padding: 0 20px;
    max-width: 850px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-ball {
    position: sticky;
    top: 50px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: #45a049;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(37, 235, 86, 0.5);
    z-index: 2;
    transform: translateX(-50%);
    margin-bottom: 12px;
}

.timeline-content {
    padding-left: 30px;
}

.job {
    margin-bottom: 30px;
    position: relative;
    background: #1F2937;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.bullets {
    padding-left: 20px;
    line-height: 1.5;
}

.bullets li {
    margin-bottom: 6px;
}

span {
    color: #8696a0;
}

li {
    color: #E5E7EB;
}

.contacts-container {
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.2s;
    border: 1px solid rgba(37, 211, 102, 0.2);
    margin: 0 auto;
    width: 60%;
    max-width: 700px;
}

.contact {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1F2937;
    color: black;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 10px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    transition: background 0.2s;
    word-break: break-word;
}

.contact:first-child {
    margin-top: 0;
}

.contact:hover {
    background: #00a884;
}

.skills {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #111b21;
    transition: transform 0.2s;
    background: #00a884;
    font-weight: bold;
}

.contact i {
    color: #E5E7EB;
    margin-right: 12px;
    flex-shrink: 0;
}

.projects {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    padding: 10px 30px;
}

/* Tablet Responsiveness */
@media (max-width: 900px) {
    .container {
        width: 95%;
    }

    .image {
        width: 35%;
    }

    .contacts-container {
        width: 85%;
    }

    .headings {
        width: 80%;
    }
}

/* Mobile Phone Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 5px;
    }

    header {
        width: 100%;
        padding: 15px 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .navigation {
        justify-content: center;
    }

    .navig {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        padding: 0 5px 0 15px;
    }

    .timeline-line,
    .timeline-ball {
        left: 15px;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .container {
        flex-direction: column;
        width: 100%;
        padding: 15px;
    }

    .image {
        width: 75%;
        max-width: 220px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .bio {
        font-size: 1rem;
        text-align: center;
    }

    .headings {
        width: 95%;
        font-size: 1.4rem;
    }

    .resume {
        width: 100%;
        max-width: 260px;
    }

    .projects {
        padding: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .contacts-container {
        width: 100%;
        padding: 12px;
    }

    .skill {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}