/* Navigation styles are now in navigation.css file */

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 60px;
    left: -300px;
    width: 300px;
    height: calc(100vh - 60px);
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-link {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Logo Styling */
.logo-container img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Professional About Page Styling */
.about-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title {
    color: var(--primary-color);
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.summary-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.experience-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.experience-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-content h3 {
    color: var(--accent-color);
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.experience-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.certification-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.1);
}

.cert-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.cert-content h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cert-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    color: var(--accent-color);
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-dark);
}

.skill-tag:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.contact-content {
    text-align: center;
}

.contact-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.contact-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.contact-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.contact-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Specific black text for important terms */
.experience-content h3:contains("NSA"),
.experience-content h3:contains("Barracuda"),
.cert-content h3:contains("CISSP"),
.cert-content h3:contains("Linux"),
.cert-content h3:contains("Network Professional"),
.cert-content h3:contains("Cybersecurity"),
.skill-category h3:contains("Cloud") {
    color: #000000 !important;
}

/* Alternative approach using specific selectors */
.experience-content h3.black-text,
.cert-content h3.black-text,
.skill-category h3.black-text {
    color: #000000 !important;
}

/* Main Content Adjustments */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
}

.page-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* About Page Grid Styling */
.about-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.about-tile {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.about-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.about-video-tile {
    position: relative;
    height: 200px;
    background: #000;
}

.about-video-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.about-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    opacity: 0.8;
    pointer-events: none;
}

.about-tile-content {
    padding: 15px;
}

.about-tile-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
}

.about-tile-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: white;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    display: flex;
    flex-direction: column;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-media {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    min-height: 400px;
}

.modal-media video,
.modal-media img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.modal-info {
    padding: 20px;
    background: white;
}

.modal-info p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-tags .tile-tag {
    background: var(--light-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-link-btn {
    background: var(--light-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.modal-link-btn:hover {
    background: #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .brand-name {
        font-size: 18px;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .content-wrapper {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-info {
        padding: 15px;
    }

    .modal-media {
        min-height: 300px;
    }

    .modal-media video,
    .modal-media img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .sidebar {
        width: 250px;
        left: -250px;
    }

    .content-wrapper {
        padding: 15px 10px;
    }

    .page-title {
        font-size: 24px;
    }

    .about-tile {
        margin-bottom: 15px;
    }
}
