body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #fafafa;
    scroll-behavior: smooth;
}

/* Header / Navbar */
header {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    height: 50px;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #ff0000;
}

/* Section Styles */
section {
    padding: 80px 20px;
    min-height: 100vh;
}

#home {
    background: #f4f4f4;
}

#about {
    background: #eaeaea;
}

#portfolio {
    background: #ddd;
}

#contact {
    background: #ccc;
}

h1,
h2 {
    margin-top: 0;
}

/* Portfolio Grid */
.grid {
    column-count: 3;
    column-gap: 15px;
}

.card {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    break-inside: avoid;
}

.card img {
    width: 100%;
    display: block;
}

.card p {
    padding: 10px;
    margin: 0;
}

/* Contact Form */
form {
    max-width: 560px;
    width: 100%;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
    width: 100%;
    padding: 12px 15px;
    /* slightly more balanced padding */
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* softer, more modern radius */
    box-sizing: border-box;
    /* ensures padding doesn't stretch width */
    font-size: 16px;
    outline: none;
}

form textarea {
    resize: vertical;
    /* allows vertical resizing only */
    min-height: 120px;
    /* ensures textarea is visible enough */
}

form button {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    /* match input radius */
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #ff0000;
}


/* Responsive */
@media (max-width: 1000px) {
    .grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .grid {
        column-count: 1;
    }
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    /* forces side-by-side */
}

.about-image img {
    width: 800px;
    height: auto;
    border-radius: 8px;
    /* soft corners */
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}