/* =========================================
   SOLOMON HAILU - PROFESSIONAL PORTFOLIO
   ========================================= */

:root {
    --navy: #10243a;
    --blue: #2563eb;
    --light-blue: #eff6ff;
    --white: #ffffff;
    --background: #f8fafc;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: auto;
}

/* Navigation */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
}

.logo span {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-contact {
    background: var(--blue);
    color: white !important;
    padding: 11px 20px;
    border-radius: 7px;
}

/* Hero */

.hero {
    background: linear-gradient(135deg, #f8fafc, #eaf2ff);
    padding: 110px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 65px;
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.12;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--blue);
    display: block;
}

.hero h2 {
    font-size: 19px;
    color: var(--navy);
    margin-bottom: 16px;
}

.hero-description {
    max-width: 570px;
    color: var(--muted);
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 7px;
    font-weight: 700;
    transition: 0.2s;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--navy);
    background: white;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.experience-note {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.hero-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px;
    box-shadow: 0 20px 50px rgba(15, 35, 60, 0.08);
}

.hero-card-icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.hero-card h3 {
    color: var(--navy);
    font-size: 23px;
    margin-bottom: 12px;
}

.hero-card p {
    color: var(--muted);
    margin-bottom: 22px;
}

.hero-card-tags,
.project-tags {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.hero-card-tags span,
.project-tags span {
    background: var(--light-blue);
    color: var(--blue);
    padding: 7px 11px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

/* General sections */

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--background);
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-heading h2 {
    color: var(--navy);
    font-size: 36px;
    margin-bottom: 12px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

/* About */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
}

.about-content h3 {
    color: var(--navy);
    font-size: 30px;
    line-height: 1.35;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 17px;
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: 0.25s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 35, 60, 0.07);
    border-color: #bfdbfe;
}

.service-icon {
    font-size: 35px;
    margin-bottom: 17px;
}

.service-card h3 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

/* Portfolio */

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

.project-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
    transition: 0.25s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 35, 60, 0.08);
}

.project-visual {
    min-height: 190px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--blue);
}

.project-visual span {
    font-size: 55px;
}

.project-visual p {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.project-visual-alt {
    background: linear-gradient(135deg, #e0e7ff, #f1f5f9);
}

.project-info {
    padding: 27px;
}

.project-category {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-info h3 {
    color: var(--navy);
    font-size: 22px;
    margin: 9px 0;
}

.project-info > p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Contact */

.contact-section {
    background: var(--navy);
    padding: 90px 0;
    text-align: center;
}

.contact-content {
    max-width: 700px;
}

.contact-section h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 17px;
}

.contact-section .eyebrow {
    color: #93c5fd;
}

.contact-section p:not(.eyebrow) {
    color: #cbd5e1;
    margin-bottom: 28px;
}

.contact-email {
    margin-top: 20px;
    font-size: 14px;
}

/* Footer */

.footer {
    background: #0b1929;
    padding: 28px 0;
    color: #cbd5e1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer .logo {
    color: white;
}

.footer p,
.footer a:not(.logo) {
    font-size: 13px;
}

/* Responsive design */

@media (max-width: 850px) {

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        padding: 18px 0;
        gap: 15px;
    }

    .nav-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-card {
        padding: 25px;
    }

    .section {
        padding: 65px 0;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-section h2 {
        font-size: 31px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

}
