/* ============================================
   Asim Ali Tahir - Personal Website Styles
   Pure HTML/CSS - Easy to Edit
   ============================================ */

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

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background-color: #f5f5f5;
    background-image: url('img/background.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Layout Container */
#container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDE NAVIGATION WITH ICONS
   ============================================ */
#sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 10px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#navigationMenu {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

#navigationMenu li {
    margin-bottom: 8px;
    height: 39px;
}

#navigationMenu a {
    background: url('img/navigation.jpg') no-repeat;
    height: 39px;
    width: 38px;
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

#navigationMenu a:hover {
    box-shadow: 0 0 8px rgba(157, 223, 245, 0.8);
}

#navigationMenu span {
    width: 0;
    left: 45px;
    padding: 0;
    position: absolute;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 39px;
    border-radius: 0 4px 4px 0;
    transition: all 0.25s ease;
}

#navigationMenu a:hover span {
    width: auto;
    padding: 0 15px;
    overflow: visible;
}

/* Icon Positions - Normal State */
#navigationMenu .home      { background-position: 0 0; }
#navigationMenu .about     { background-position: -38px 0; }
#navigationMenu .experience{ background-position: -76px 0; }
#navigationMenu .skills    { background-position: -114px 0; }
#navigationMenu .contact   { background-position: -152px 0; }

/* Icon Positions - Hover State */
#navigationMenu .home:hover      { background-position: 0 -39px; }
#navigationMenu .about:hover     { background-position: -38px -39px; }
#navigationMenu .experience:hover{ background-position: -76px -39px; }
#navigationMenu .skills:hover    { background-position: -114px -39px; }
#navigationMenu .contact:hover   { background-position: -152px -39px; }

/* Label Colors */
#navigationMenu .home span {
    background-color: #7da315;
    color: #fff;
}

#navigationMenu .about span {
    background-color: #1e8bb4;
    color: #fff;
}

#navigationMenu .experience span {
    background-color: #c86c1f;
    color: #fff;
}

#navigationMenu .skills span {
    background-color: #d0a525;
    color: #fff;
}

#navigationMenu .contact span {
    background-color: #af1e83;
    color: #fff;
}

/* Active Page Indicator */
#navigationMenu a.active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
#main-content {
    margin-left: 60px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   HEADER / NAME SECTION
   ============================================ */
#header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

#header h1 {
    font-size: 42px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

#header .title {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

#header .contact-info {
    margin-top: 15px;
    font-size: 14px;
    color: #888;
}

#header .contact-info a {
    color: #1e8bb4;
    text-decoration: none;
}

#header .contact-info a:hover {
    text-decoration: underline;
}

/* Credentials */
.credentials {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* CV Download Buttons */
.cv-downloads {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cv-icon {
    font-size: 16px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    margin-bottom: 35px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1e8bb4;
    display: inline-block;
}

.section-content {
    color: #555;
    line-height: 1.8;
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-text {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

/* ============================================
   EXPERIENCE / COMPANY CARDS
   ============================================ */
.company-card {
    background: #f9f9f9;
    border-left: 4px solid #1e8bb4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.company-card:hover {
    background: #f0f7fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.company-name a {
    color: #1e8bb4;
    text-decoration: none;
}

.company-name a:hover {
    text-decoration: underline;
}

.company-role {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    margin-top: 3px;
}

.company-period {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.company-location {
    font-size: 13px;
    color: #999;
}

.company-description {
    margin-top: 12px;
    color: #555;
    line-height: 1.7;
}

.company-achievements {
    margin-top: 12px;
}

.company-achievements h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.company-achievements ul {
    margin-left: 20px;
    color: #555;
}

.company-achievements li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.technologies {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.technologies strong {
    color: #444;
}

/* Previous Experience Section */
.previous-experience {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.previous-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.previous-item:last-child {
    border-bottom: none;
}

.previous-role {
    font-weight: 600;
    color: #444;
}

.previous-company {
    color: #1e8bb4;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-category {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid;
}

.skill-category.cloud { border-color: #1e8bb4; }
.skill-category.networking { border-color: #7da315; }
.skill-category.virtualization { border-color: #c86c1f; }
.skill-category.security { border-color: #af1e83; }
.skill-category.automation { border-color: #d0a525; }
.skill-category.storage { border-color: #2c3e50; }

.skill-category h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 5px 0;
    color: #555;
    font-size: 14px;
    position: relative;
    padding-left: 15px;
}

.skill-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #1e8bb4;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.cert-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #7da315;
}

.cert-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.cert-date {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ============================================
   EDUCATION
   ============================================ */
.education-item {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.education-degree {
    font-weight: 600;
    color: #2c3e50;
}

.education-school {
    color: #666;
    font-size: 14px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.contact-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: #f0f7fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

.contact-value a {
    color: #1e8bb4;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* ============================================
   TPN STYLING
   ============================================ */
.tpn-success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tpn-company {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #d4af37;
}

.tpn-badge {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tpn-badge.blue {
    background: linear-gradient(135deg, #1e8bb4 0%, #3498db 100%);
    color: white;
}

.tpn-company:has(.tpn-badge.blue) {
    border-left-color: #1e8bb4;
}

.tpn-name {
    font-weight: 600;
    color: #2c3e50;
}

.tpn-consulting-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    margin-top: 15px;
}

.tpn-client-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.tpn-client {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tpn-shield {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tpn-shield.gold {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #333;
}

.tpn-shield.blue {
    background: linear-gradient(135deg, #1e8bb4 0%, #3498db 100%);
    color: white;
}

.tpn-client-name a {
    color: #1e8bb4;
    text-decoration: none;
    font-weight: 500;
}

.tpn-client-name a:hover {
    text-decoration: underline;
}

.tpn-track-record {
    background: #e8f6f3;
    border-left: 4px solid #1abc9c;
}

/* TPN Ribbon on Company Cards */
.company-card {
    position: relative;
}

.tpn-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #333;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 8px 0 8px;
}

.tpn-ribbon.blue {
    background: linear-gradient(135deg, #1e8bb4 0%, #3498db 100%);
    color: white;
}

.company-card.tpn-gold {
    border-left-color: #d4af37;
}

.company-card.tpn-blue {
    border-left-color: #1e8bb4;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.service-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #1e8bb4;
}

.service-card:hover {
    background: #f0f7fa;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   HOME PAGE HIGHLIGHTS
   ============================================ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.highlight-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.highlight-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Quick Links */
.quick-links {
    margin-top: 30px;
    text-align: center;
}

.quick-links a {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px;
    background: #1e8bb4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: #167a9c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 139, 180, 0.4);
}

/* ============================================
   WIKI LINKS
   ============================================ */
.wiki-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wiki-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wiki-card:hover {
    background: #f0f7fa;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1e8bb4;
}

.wiki-card.public:hover {
    border-color: #7da315;
}

.wiki-card.private:hover {
    border-color: #af1e83;
}

.wiki-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.wiki-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.wiki-desc {
    font-size: 12px;
    color: #888;
}

/* ============================================
   SINGLE ROW HIGHLIGHTS
   ============================================ */
.highlights-grid.single-row {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SIX ITEMS SERVICES GRID
   ============================================ */
.services-grid.six-items {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .services-grid.six-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid.six-items {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid.single-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e8bb4;
    box-shadow: 0 0 0 3px rgba(30, 139, 180, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background: #e8f6f3;
    border-radius: 6px;
    border-left: 4px solid #1abc9c;
}

.form-note p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE NAVIGATION AT TOP
   ============================================ */
@media (max-width: 768px) {
    #container {
        flex-direction: column;
    }
    
    /* Move sidebar to top for mobile */
    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: center;
        padding: 10px 5px;
        background: rgba(0, 0, 0, 0.9);
    }

    #navigationMenu {
        display: flex;
        margin-top: 0;
        flex-wrap: nowrap;
        justify-content: space-around;
        width: 100%;
        max-width: 400px;
    }

    #navigationMenu li {
        margin: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #navigationMenu a {
        width: 32px;
        height: 32px;
        background-size: 160px 64px;
    }
    
    /* Adjust icon positions for smaller size */
    #navigationMenu .home      { background-position: 0 0; }
    #navigationMenu .about     { background-position: -32px 0; }
    #navigationMenu .experience{ background-position: -64px 0; }
    #navigationMenu .skills    { background-position: -96px 0; }
    #navigationMenu .contact   { background-position: -128px 0; }
    
    #navigationMenu .home:hover      { background-position: 0 -32px; }
    #navigationMenu .about:hover     { background-position: -32px -32px; }
    #navigationMenu .experience:hover{ background-position: -64px -32px; }
    #navigationMenu .skills:hover    { background-position: -96px -32px; }
    #navigationMenu .contact:hover   { background-position: -128px -32px; }

    /* Hide text labels on mobile - icons only */
    #navigationMenu span {
        display: none;
    }

    #main-content {
        margin-left: 0;
        padding: 15px;
    }

    .content-wrapper {
        padding: 20px;
        border-radius: 8px;
    }

    #header h1 {
        font-size: 24px;
    }
    
    #header .title {
        font-size: 14px;
    }
    
    .cv-downloads {
        flex-direction: column;
        gap: 10px;
    }
    
    .cv-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .company-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .company-header > div:last-child {
        text-align: left;
    }
    
    .tpn-ribbon {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
        border-radius: 4px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid.six-items {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid.single-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .tpn-success-grid {
        grid-template-columns: 1fr;
    }
    
    .wiki-links {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-links a {
        display: block;
        margin: 5px 0;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
    }

    #sidebar {
        display: none;
    }

    #main-content {
        margin-left: 0;
    }

    .content-wrapper {
        box-shadow: none;
    }
}
