/* ============================================
   YOHANNES FIKRE - PORTFOLIO WEBSITE
   Color Scheme: Navy Blue + Teal
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors */
    --navy-900: #0a1628;
    --navy-800: #0f2744;
    --navy-700: #1a365d;
    --navy-600: #234e76;
    --navy-500: #2d6a8f;
    
    /* Accent Colors */
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --teal-600: #0d9488;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-800);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-500);
    letter-spacing: -1px;
}

.navbar.scrolled .nav-logo {
    color: var(--navy-800);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--gray-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-500);
    transition: var(--transition-fast);
}

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

.nav-cta {
    background: var(--teal-500);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--teal-600);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--navy-800);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 120px 24px 60px;
}

.hero-greeting {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--teal-400);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-400);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--teal-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
}

.btn-full {
    width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--teal-500);
    border-radius: 20px;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--teal-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.75rem;
    color: var(--navy-800);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-lead {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--navy-700);
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-600);
}

.about-highlights {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight {
    display: flex;
    gap: 16px;
    align-items: start;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.highlight h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--navy-800);
}

.highlight p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.credentials-card {
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.credentials-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
    color: var(--navy-800);
}

.credential {
    margin-bottom: 16px;
}

.credential:last-child {
    margin-bottom: 0;
}

.credential-degree {
    display: block;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 2px;
}

.credential-school {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    padding: var(--section-padding);
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.skill-category {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-400);
}

.skill-category h3 {
    font-size: 1.125rem;
    color: var(--navy-800);
}

.skill-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
    padding: var(--section-padding);
    background: var(--navy-900);
}

.experience .section-tag {
    color: var(--teal-400);
}

.experience .section-title {
    color: var(--white);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--navy-700);
}

.timeline-item {
    position: relative;
    padding-left: 48px;
    padding-bottom: 48px;
}

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

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--teal-500);
    border-radius: 50%;
    border: 3px solid var(--navy-900);
}

.timeline-content {
    background: var(--navy-800);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--navy-700);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timeline-date {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--teal-400);
    font-weight: 500;
}

.timeline-location {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.timeline-title {
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--gray-400);
    font-weight: 400;
    margin-bottom: 16px;
}

.timeline-description {
    color: var(--gray-400);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.timeline-achievements {
    margin-bottom: 20px;
}

.timeline-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--teal-500);
    border-radius: 50%;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tech span {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--navy-700);
    color: var(--teal-400);
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--navy-800);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: var(--teal-500);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--teal-600);
}

.project-content {
    padding: 28px;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.project-content h3 {
    font-size: 1.375rem;
    color: var(--navy-800);
    margin-bottom: 12px;
}

.project-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-400);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.contact-item a:hover {
    color: var(--teal-500);
}

.contact-form {
    background: var(--gray-50);
    padding: 40px;
    border-radius: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-800);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-700);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-500);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-900);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--navy-700);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-500);
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--navy-800);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--teal-500);
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--navy-900);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        color: var(--white);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 6px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Placeholder for missing images */
.project-image img[src=""],
.project-image img:not([src]),
.image-wrapper img[src=""],
.image-wrapper img:not([src]) {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
}
