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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f4f7f6;
    font-size: 16px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex-grow: 1;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #ffffff;
    padding: 60px 20px 50px;
    text-align: center;
    border-bottom: 5px solid #2980b9;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    object-fit: cover;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ecf0f1;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub-tagline {
    font-size: 1.15em;
    font-weight: 300;
    margin-bottom: 25px;
    color: #bdc3c7;
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    background-color: #ffffff;
    padding: 35px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

section h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-weight: 600;
    letter-spacing: -0.5px;
}

section p {
    margin-bottom: 1em;
    color: #555;
}
section p a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}
section p a:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* Centralized Headings for sections */
#signature-systems h2,
#core-expertise h2,
#career-journey h2,
#technical-prowess h2 {
    text-align: center;
}

/* Signature Systems & Models Section */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.system-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.system-card-icon {
    font-size: 2em;
    color: #3498db;
    margin-bottom: 15px;
    text-align: left;
}

.system-card h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 8px;
}

.system-card .system-focus {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 12px;
    font-style: italic;
}
.system-card .system-focus strong {
    font-style: normal;
    color: #3498db;
    font-weight: 600;
}

.system-card p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 10px;
}

.system-card .system-keywords {
    font-size: 0.85em;
    color: #777;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.system-card .system-keywords em {
    font-style: normal;
}

/* Core Expertise - Detailed List */
.expertise-detailed-list {
    list-style: none;
    padding: 0;
}

.expertise-detailed-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-left: 5px solid #3498db;
}

.expertise-detailed-list li i {
    font-size: 2.2em;
    color: #3498db;
    margin-right: 20px;
    margin-top: 5px;
    min-width: 40px;
    text-align: center;
}

.expertise-detailed-list li div {
    flex: 1;
}

.expertise-detailed-list li div h5 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 8px;
}

.expertise-detailed-list li div p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Career Journey (Timeline-like) */
.timeline .timeline-item {
    padding-left: 25px;
    border-left: 3px solid #3498db;
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border: 3px solid #3498db;
    border-radius: 50%;
    z-index: 1;
}

.timeline .timeline-item:first-child::before {
    background-color: #3498db;
}

.timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.timeline .timeline-item h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 5px;
}
.timeline .timeline-item p {
    margin-bottom: 8px;
    line-height: 1.6;
}
.timeline .timeline-item em {
    font-size: 0.95em;
    color: #777;
    display: block;
    margin-bottom: 8px;
}

/* Technical Prowess (Skills) */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.skill-category h4 {
    font-size: 1.15em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
    padding-left: 0; 
    margin-top: 0;
}

.skill-category ul li {
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
    padding: 4px 0;
    position: relative;
}

/* General skill list item bullet (if you want to keep it for other lists) */
.skill-category ul:not(.certification-list) li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block; 
    position: absolute;
    left: 0px;
    top: 4px; 
}

.skill-category ul:not(.certification-list) li {
    padding-left: 20px; /* Ensure li text has space for the bullet if it's present */
}


/* STYLES FOR CERTIFICATIONS */
.skill-category ul.certification-list li {
    display: flex; 
    align-items: center; 
    padding-left: 0; 
    margin-bottom: 10px; /* Increased space between certification items */
}

.skill-category ul.certification-list li::before {
    content: none; /* Remove the default bullet for certification items */
}

.certification-logo {
    width: 30px;  /* Slightly larger for better visibility */
    height: 30px; 
    margin-right: 12px; 
    object-fit: contain; 
    flex-shrink: 0; /* Prevent logo from shrinking if text is long */
}

/* Contact Section */
.contact-section {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
}

.contact-section h2 {
    color: #ffffff;
    border-bottom-color: #3498db;
    font-size: 1.8em; /* Adjusted from 2em to match other section H2s more closely after centering */
}

.contact-section p {
    color: #bdc3c7;
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em; /* Ensured consistent bottom margin */
}

.contact-links {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.contact-links li {
    margin-bottom: 15px;
    font-size: 1.1em; /* Moved from 'a' to 'li' for consistency of label and link size */
}

.contact-links li strong { 
    color: #bdc3c7; /* For labels like "Email:", "LinkedIn:", "Fiverr:" */
    margin-right: 8px; /* Space between label and link */
}

.contact-links a {
    color: #ffffff;
    font-weight: 500;
    /* font-size: 1.1em; removed, now on li */
    text-decoration: none; /* Explicitly set no underline */
}
.contact-links a:hover {
    color: #3498db;
    text-decoration: underline; /* Add underline on hover for better UX */
}

.cv-button {
    margin-top: 15px;
}
/* .cv-button:hover inherits from .cta-button:hover */


/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: #7f8c8d;
    background-color: #e0e6e9;
    border-top: 1px solid #d1d8db;
}
footer p {
    margin-bottom: 0; /* Removed potential extra margin from general p rule */
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-tagline {
        font-size: 1.2em;
    }
    .hero-sub-tagline {
        font-size: 1em;
    }
    section h2 {
        font-size: 1.7em;
    }
    .systems-grid {
        grid-template-columns: 1fr; /* Stack system cards on mobile */
    }
    .skills-container {
         grid-template-columns: 1fr; /* Stack skill categories on mobile */
    }
    .expertise-detailed-list li {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center;
    }
    .expertise-detailed-list li i {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .expertise-detailed-list li div {
        text-align: center;
    }
     .expertise-detailed-list li div h5 {
        text-align: center; /* Ensured h5 is also centered */
    }

    .skill-category ul:not(.certification-list) li {
        padding-left: 20px; /* Adjust padding/bullet position for mobile if needed */
    }
    .skill-category ul:not(.certification-list) li::before {
        /* Adjust bullet position for mobile if needed */
    }

    .certification-logo {
        width: 24px; /* Slightly smaller logos on mobile */
        height: 24px;
        margin-right: 10px;
    }

    .contact-links li {
        font-size: 1em; /* Slightly smaller contact links on mobile */
    }
}