/* Box-sizing reset */
html * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
    background: #fff4e6; /* warm light background */
    color: #333;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s;
}

/* Page container */
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    padding: 25px;
    border-radius: 12px;
    background-color: #fff8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    gap: 25px;
}

/* Headings */
h1 {
    font-size: 2.75rem;
    color: #d35400; /* warm orange */
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

h1:hover {
    transform: scale(1.05) rotate(-1deg);
}

h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e67e22;
}

h3 {
    font-size: 1.5rem;
    color: #e17055;
}

/* Projects section */
.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* Individual card */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff0e0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
}

.card:hover {
    transform: translateY(-8px) rotate(-1deg) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    background: #ffe6d5;
}

/* Card image */
.card-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid #f5c28f;
}

/* Card text */
.card-copy {
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #e67e22;
    transition: transform 0.3s, color 0.3s;
}

.card-copy:hover {
    transform: scale(1.05) translateY(-3px);
    color: #d35400;
}

/* Card link button */
.card-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 18px;
    margin: 12px 0 15px 0;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card-link:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        width: 160px;
    }
    .card-copy {
        font-size: 0.9rem;
    }
    .card-link {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}
