body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: #222;
    background: #f7f7f9;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #2c2f33, #1e2124);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-logo {
    width: 70px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero p {
    opacity: 0.8;
}

/* Projects section */
.projects {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    align-items: center; /* vertical centering */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.project-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.project-logo {
    width: 80px;
    flex-shrink: 0; /* prevent image from shrinking on smaller screens */
}

/* Text content inside card */
.project-card div {
    flex: 1; /* take remaining space for text */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center;     /* center everything horizontally */
    text-align: center;      /* text centered for nice look */
}

.project-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.project-card p {
    margin: 0 0 12px 0;
    color: #555;
}

/* Button */
.btn-primary {
    display: inline-block;
    margin-top: 12px;       /* space from text */
    background: #007AFF;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

    width: fit-content;      /* only as wide as content */
    max-width: 50%;           /* at most half of the card */
    text-align: center;
}

.btn-primary.disabled {
    background: #9BBEFF;      /* lighter, faded version */
    pointer-events: none;     /* makes it unclickable */
    opacity: 0.6;             /* visual cue */
    transform: none;          /* prevent hover scaling */
    box-shadow: none;
    cursor: default;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.3);
    background: #005ecb;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive: stack image on top on small screens */
@media (max-width: 600px) {
    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-card div {
        align-items: center; /* keep button and text centered */
    }

    .project-logo {
        width: 120px;
        margin-bottom: 16px;
    }
}
