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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border: 10px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Header */
.resume-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Reduced gap */
    flex-wrap: wrap; /* Allow stacking */
}

.name-title h1 {
    font-size: 2em;
    color: #2c3e50;
}

.job-title {
    font-size: 1.1em;
    color: #555;
    font-weight: bold;
}

#visits {
    margin-top: 5px;
    font-size: 0.9em;
    color: #444;
}

/* Profile Photo */
.photo-placeholder {
    width: 120px;
    height: 120px;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

/* Contact Info */
.contact-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 25px;
}

.contact-info p {
    margin: 4px 0;
    font-size: 0.95em;
}

/* Section Titles */
h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5482a0;
}

/* Job Section */
.job {
    margin-bottom: 25px;
}

.job h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.company {
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logos */
.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.1);
}

.job ul {
    margin-left: 20px;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

li strong {
    color: #2c3e50;
}

/* Certifications */
.certification-badge {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap; /* allows line breaks */
}

.certification-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certification-badge img:hover {
    transform: scale(1.1);
}

/* -------------------------------------
   MOBILE RESPONSIVE RULES
--------------------------------------*/

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-width: 6px;
    }

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

    .name-title h1 {
        font-size: 1.6em;
    }

    .job-title {
        font-size: 1em;
    }

    .photo-placeholder {
        width: 100px;
        height: 100px;
    }

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

    .company-logo {
        width: 45px;
        height: 45px;
    }

    h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 15px;
        border-width: 5px;
    }

    .name-title h1 {
        font-size: 1.4em;
    }

    .job-title {
        font-size: 0.95em;
    }

    #visits {
        font-size: 0.8em;
    }

    .company-logo {
        width: 40px;
        height: 40px;
    }

    .certification-badge img {
        width: 65px;
        height: 65px;
    }
}
