/*
 * Joseph Okereke - Professional Portfolio
 * Modern dark navy and gold theme with professional design
 */

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

:root {
    /* Color Palette */
    --primary: #2C3E50;       /* Dark Navy */
    --primary-light: #34495E; /* Medium Navy */
    --secondary: #F1C40F;     /* Gold */
    --secondary-light: #F9E79F; /* Light Gold */
    --accent: #3498DB;        /* Blue */
    --dark: #1A2530;          /* Darker Navy */
    --light: #FFFFFF;         /* White */
    --light-gray: #F5F5F5;    /* Light Gray */
    --medium-gray: #E0E0E0;   /* Medium Gray */
    --text: #333333;          /* Main Text */
    --text-light: #777777;    /* Light Text */
    
    /* Typography */
    --heading-font: 'Merriweather', serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-spacing: 100px 0;
    --container-padding: 0 15px;
    
    /* Other Variables */
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 6px;
    --border: 1px solid rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary);
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

h1 span {
    color: var(--secondary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2 span {
    color: var(--secondary);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.section-header h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

section {
    padding: var(--section-spacing);
}

.highlight {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.secondary-btn:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-nav {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-nav:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header and Navigation */
header {
    background-color: var(--light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--light);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo h1 {
    margin-left: 15px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--primary);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}

nav ul li a:not(.btn-nav):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover:not(.btn-nav) {
    color: var(--secondary);
}

nav ul li a:hover:not(.btn-nav):after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                url('https://via.placeholder.com/1920x1080?text=JosephOkereke') center/cover no-repeat;
    color: var(--light);
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light);
}

.hero h2 span {
    color: var(--secondary);
}

.subtitle {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--light-gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about {
    background-color: var(--light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    position: relative;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat {
    background-color: var(--light);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary);
}

.stat:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--heading-font);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Expertise Section */
.expertise {
    background-color: var(--light-gray);
}

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

.skill-card {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    border-top: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--secondary);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(241, 196, 15, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-icon .icon {
    font-size: 1.8rem;
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Experience Section */
.experience {
    background-color: var(--light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--medium-gray);
}

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

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

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 3px solid var(--light);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--light);
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 30px);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.timeline-content h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
}

.timeline-list {
    margin-top: 15px;
    padding-left: 20px;
}

.timeline-list li {
    margin-bottom: 5px;
    color: var(--text);
}

/* Projects Section */
.projects {
    background-color: var(--light-gray);
}

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

.project-card {
    background-color: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-content p {
    margin-bottom: 20px;
    color: var(--text);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.project-tags span {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 4px;
}

.project-link {
    display: inline-block;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.project-link:hover::after {
    width: 100%;
}

/* Resources Section */
.resources {
    background-color: var(--light);
    position: relative;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.resource-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-column a {
    padding: 15px;
    background-color: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary);
}

.resource-column a:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateX(5px);
    border-left-color: var(--secondary);
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.contact-form {
    background-color: var(--light);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius);
    font-family: var(--body-font);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.info-card {
    background-color: var(--primary);
    color: var(--light);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.info-card h3 {
    margin-bottom: 30px;
    color: var(--light);
    position: relative;
    padding-bottom: 15px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.contact-list {
    list-style-type: none;
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--light);
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo p {
    margin: 15px 0 0;
    color: var(--light);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-logo p span {
    color: var(--secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

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

.footer-bottom p {
    margin-bottom: 0;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.social-mini {
    display: flex;
    gap: 15px;
}

.social-mini a {
    color: var(--light-gray);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-mini a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        left: 50px !important;
    }
}

@media (max-width: 992px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        height: 24px;
        width: 30px;
        position: relative;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        height: 2px;
        width: 30px;
        background-color: var(--primary);
        position: absolute;
        transition: var(--transition);
    }
    
    .nav-toggle-label span {
        top: 11px;
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -8px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 8px;
    }
    
    .nav-toggle:checked + .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--light);
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-toggle:checked ~ nav {
        height: auto;
        padding: 20px 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: auto;
        min-height: 90vh;
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}
