@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    /* Gradient background for body */
    background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Georgia', serif;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1E3A8A;
}

h1 {
    font-size: 36px;
    line-height: 1.4;
}

h2 {
    font-size: 32px;
    line-height: 1.4;
    border-bottom: 3px solid #F59E0B;
    padding-bottom: 5px;
}

h3 {
    font-size: 28px;
    line-height: 1.4;
}

h4 {
    font-size: 21px;
    line-height: 1.4;
}
h5 {
    font-size: 18px;
    line-height: 1.4;
}

nav {
    font-family: 'Verdana', sans-serif;
    font-size: 18px;
    font-weight: bold;
    background-color: #1E3A8A;
    padding: 5px 15px;
    text-align: center;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 5px 20px;
    display: inline-block;
    font-weight: bold;
}

nav a:hover {
    background-color: #F59E0B;
    color: #1E3A8A;
    transition: 0.3s;
}

/* Internal buttons (merged with your existing .internalbuttons, no repeat) */
.internalbuttons {
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    background-color: #1c1c57;
    color: #fff;
    cursor: pointer;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.internalbuttons:hover {
    background-color: #29217b;
    color: #fff;
    transition: 0.3s;
}

button {
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    background-color: #1E3A8A;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #F59E0B;
    color: #1E3A8A;
    transition: 0.3s;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

section {
    background-color: white;
    padding: 30px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"], textarea, input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    margin: 5px 0;
    border: 2px solid #1E3A8A;
    border-radius: 5px;
}

input[type="text"]:focus, textarea:focus, input:focus {
    border-color: #F59E0B;
}

.project-img{
    height: 150px;
    object-fit: cover;
}

/* Project header image */
.project-header-img {
    width: 120px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px #00000012);
}

/* Table header */
.table thead th,
.thead-dark th {
    background: #323245 !important;
    color: #fff !important;
    font-size: 1.1rem;
    width: auto;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    padding: 12px 16px;
}

/* Table cells */
.table td, .table th {
    vertical-align: middle !important;
}

/* Project icon */
.project-icon {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 8px;
}

/* Project row styling */
.project-row {
    background: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.07);
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.project-row:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(99,102,241,0.13);
}

/* Section divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: #6366f1;
    margin: 0 auto 24px auto;
    border-radius: 2px;
}

/* Make Link column wider */
th[scope="col"]:last-child,
td:last-child {
    min-width: 120px;
    width: 140px;
}

footer {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    background-color: #1E3A8A;
    color: white;
    padding: 15px;
    margin-top: 20px;
}

footer a {
    color: #F59E0B;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Add or update these styles for consistent card sizing */
#projects .card {
    height: 100%;
    min-height: 400px;      /* Adjust as needed for your content */
    max-width: 350px;       /* Ensures all cards have the same width */
    margin: 0 auto 24px auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.07);
    transition: transform 0.15s, box-shadow 0.15s;
}

#projects .card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#projects .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#projects .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#projects .card-text {
    font-size: 1rem;
    color: #333;
}

.table {
    width: 100%;
    min-width: unset; /* Remove or comment out min-width */
}
@media (max-width: 991.98px) {
    .table {
        min-width: unset;
    }
}
@media (max-width: 575.98px) {
    .table {
        min-width: unset;
    }
}