/* ==========================================================================
   Portfolio Website Styles
   Author: Mark Williams
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Navigation */
.navigation {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-link.active {
    background: white;
    color: #667eea;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .title {
    font-size: 1.3em;
    margin-bottom: 5px;
    opacity: 0.95;
}

.header .location {
    font-size: 1em;
    opacity: 0.85;
}

/* Content Area */
.content {
    padding: 50px 40px;
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 1.8em;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    text-align: center;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section p {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.skill-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.skill-item strong {
    color: #667eea;
}

/* Strengths List */
.strengths-list {
    list-style: none;
    margin-top: 20px;
}

.strengths-list li {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #764ba2;
    font-size: 1.05em;
    transition: transform 0.3s ease;
}

.strengths-list li:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.strengths-list li::before {
    content: "\2713";
    color: #764ba2;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.cert-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.cert-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.cert-badge h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.cert-badge p {
    font-size: 0.9em;
    opacity: 0.9;
    color: white;
    margin: 0;
    text-align: center;
}

.cert-badge .badge-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.85em;
    transition: background 0.3s ease;
}

.cert-badge:hover .badge-link {
    background: rgba(255, 255, 255, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-top: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.project-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.project-card p {
    color: #555;
    margin-bottom: 15px;
    text-align: left;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #667eea;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.contact-section h2 {
    border: none;
    margin-bottom: 15px;
}

.linkedin-link {
    display: inline-block;
    background: #0077b5;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.linkedin-link:hover {
    background: #005885;
    transform: scale(1.05);
}

/* Admin Styles */
.admin-header {
    background: #343a40;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid #667eea;
}

.stat-card h3 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-card p {
    color: #555;
    font-weight: 600;
    text-align: center;
}

.chart-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.chart-label {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.chart-value {
    flex: 1;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 30px;
    position: relative;
}

.chart-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
    min-width: 40px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: #667eea;
    color: white;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.login-form h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    border: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #555;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .navigation {
        padding: 15px 20px;
        gap: 10px;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .content {
        padding: 30px 20px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header .title {
        font-size: 1.1em;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}
