/* ============================================
   George Taylor - CV/Portfolio Site
   Color Scheme: #11b563 (green), #146eb4 (blue)
   Fonts: Open Sans (body), Cairo (headings)
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Navigation
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a.cv-download {
    background: #11b563;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.nav-links a.cv-download:hover {
    background: #0e9a53;
}

.nav-links a.cv-download::after {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #11b563;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #11b563;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #11b563;
    color: #fff;
    border: 2px solid #11b563;
}

.btn-primary:hover {
    background: #0e9a53;
    border-color: #0e9a53;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 181, 99, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 100px 0;
}

.section-grey {
    background: #f8f9fa;
}

.section-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #11b563;
}

.section-title-light {
    color: #fff;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.about-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #11b563;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

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

.detail-item i {
    color: #11b563;
    font-size: 1.1rem;
    margin-top: 3px;
}

.detail-item span {
    font-size: 0.95rem;
    color: #444;
}

/* ============================================
   Expertise Grid
   ============================================ */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #11b563, #0e9a53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-icon i {
    color: #fff;
    font-size: 1.6rem;
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.expertise-card ul {
    text-align: left;
}

.expertise-card li {
    font-size: 0.9rem;
    color: #666;
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
}

.expertise-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #11b563;
    border-radius: 50%;
}

/* ============================================
   Skills Section
   ============================================ */
.skills-container {
    max-width: 700px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: #333;
}

.skill-percent {
    font-weight: 600;
    color: #11b563;
}

.skill-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #11b563, #0e9a53);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}

/* ============================================
   Timeline / Experience
   ============================================ */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #11b563;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

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

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: #11b563;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
}

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.timeline-header h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.contract-badge {
    font-size: 0.7rem;
    background: #146eb4;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-company {
    display: block;
    font-size: 1.05rem;
    color: #11b563;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-date {
    font-size: 0.9rem;
    color: #888;
    margin-right: 15px;
}

.timeline-location {
    font-size: 0.9rem;
    color: #888;
}

.timeline-location i {
    margin-right: 4px;
}

.timeline-details {
    margin-top: 15px;
    padding-left: 18px;
}

.timeline-details li {
    list-style: disc;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
}

.timeline-engagements {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.timeline-engagements h4 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.engagement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e8f5e9;
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid #11b563;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.project-icon {
    margin-bottom: 20px;
}

.project-icon i {
    font-size: 2.5rem;
    color: #11b563;
}

.project-card h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.project-status {
    display: inline-block;
    font-size: 0.75rem;
    background: #146eb4;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   Earlier Career Table
   ============================================ */
.career-table-wrapper {
    overflow-x: auto;
}

.career-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.career-table thead {
    background: #1a1a2e;
}

.career-table th {
    padding: 15px 20px;
    text-align: left;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.career-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #eee;
}

.career-table tbody tr:last-child td {
    border-bottom: none;
}

.career-table tbody tr:hover {
    background: #f0faf4;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(17, 181, 99, 0.1);
    border-color: #11b563;
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.3rem;
    color: #11b563;
    width: 24px;
    text-align: center;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #111;
    padding: 25px 0;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        padding: 80px 30px;
        gap: 20px;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .career-table th,
    .career-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
