/* =====================================================
   PROFESSIONAL PORTFOLIO - STYLES
   Built for Network Engineer KATO EMMANUEL NGANDA
   ===================================================== */

:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --secondary-color: #00d4ff;
    --bg-dark: #0a0f1c;
    --bg-light: #f5f7fb;
    --text-dark: #1a1f3a;
    --text-light: #ffffff;
    --text-muted: #6b7487;
    --accent-color: #ff6b6b;
    --border-color: #e0e6ed;
    --success-color: #00c896;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 102, 204, 0.15);
    
    --font-family: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    margin-top: 80px;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(0, 102, 204, 0.05) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .hero-cta {
        gap: 1rem;
    }
}

/* =====================================================
   SECTION STYLING
   ===================================================== */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about {
    background-color: var(--text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.highlight {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-education h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.education-item {
    margin-bottom: 1.8rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    transition: var(--transition);
}

.education-item:hover {
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
    transform: translateX(5px);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.education-degree {
    font-weight: 600;
    color: var(--text-dark);
}

.education-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.education-school {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   EXPERIENCE SECTION
   ===================================================== */

.experience {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--text-light) 100%);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    grid-column: 3;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--text-light);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(0, 102, 204, 0.1);
    grid-column: 2;
}

.timeline-content {
    padding: 2rem;
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
    transform: translateY(-5px);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.experience-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(0, 102, 204, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.experience-company {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.experience-duties {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.experience-duties li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.7rem;
}

.experience-duties li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        grid-column: 2;
    }
    
    .timeline-marker {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .timeline-content {
        padding: 1.5rem;
    }
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */

.skills {
    background: linear-gradient(135deg, #f5f7fb 0%, #e8ecf5 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 3px solid transparent;
    position: relative;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 102, 204, 0.15);
    border-top-color: var(--primary-color);
}

.skill-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* =====================================================
   CERTIFICATIONS SECTION
   ===================================================== */

.certifications {
    background: var(--text-light);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certification-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(0, 102, 204, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.certification-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.2);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.certification-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    color: var(--text-light);
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    background: rgba(0, 102, 204, 0.2);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.contact-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-location {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-location p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.contact-location strong {
    color: var(--secondary-color);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 3rem 0;
        margin-top: 70px;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ANIMATIONS & EFFECTS
   ===================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content {
    animation: slideInUp 0.8s ease-out;
}

.section-title {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}