:root {
    /* Color Palette */
    --bg-color: #F9FAFB;
    --accent-primary: #0055A5;
    --accent-primary-hover: #004080;
    --accent-secondary: #007B73;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --border-color: #E5E7EB;

    /* Font Families */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-align: center;
}

a {
    color: var(--accent-secondary);
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

#hero p {
    margin-bottom: 50px;
}

section {
    padding: 60px 20px;
    border-top: 2px solid var(--border-color);
}

.bio,
.skills {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.skills ul {
    display: inline-block;
    text-align: left;
}

.skills li::before {
    content: "✔️";
    margin-right: 8px;
    color: var(--accent-secondary);
}

.project-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin: 10px;
    min-height: 150px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 auto;
    margin-bottom: 30px;
    max-width: 500px;
}

.project-card li::before {
    content: "✔️";
    color: var(--accent-secondary);
    margin-right: 8px;
}

.project-card img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

#contact {
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: white;
    color: var(--text-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(0, 169, 157, 0.2);
}


code {
    font-family: var(--font-code);
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-primary);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-primary-hover);
}

.error-message {
    color: red;
    font-size: 1rem;
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0) 
    }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1.2s ease-out forwards;
}


@media (max-width: 320px) {
    body {
        overflow-x: hidden;
        font-size: 14px;
        padding: 0 10px;
    }

    header, nav, section, footer {
        padding: 10px;
    }

    .container {
        flex-direction: column;
        gap: 8px;
    }

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

    h1, h2, h3 {
        font-size: 1.2em;
    }

    button {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .project-card {
        padding: 12px;
        margin: 6px;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 8px;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .error-message {
        font-size: 0.9rem;
    }
}


@media (max-width: 600px) {
  .project-card {
    padding: 16px;
  }

  .project-card img {
    height: auto;
    max-height: 200px;
  }

  section {
    padding: 40px 16px;
  }

  .contact-form {
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 10px 20px;
  }
}