html,body {
    height: 100%; /* Ensure the full height is used */
    margin: 0; /* Remove default margin */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
}

.text-justify {
    text-align: justify;
}

/* ######### Navbar ######### */
.navbar {
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.navbar-brand.gradient-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.6rem;
    background: linear-gradient(to right, #0a5ad1, #6610f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand.gradient-text:hover {
    opacity: 0.9;
}

.navbar-brand:hover:not(.gradient-text) {
    color: #0d6efd;
}

.nav-link {
    font-size: 1rem;
    margin: 0 8px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: #0d6efd; /* Highlight Link */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%; /* Add underline on hover */
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler:hover {
    background-color: #f8f9fa; /* Light Gray */
}
/* ######### END ######### */

.social-links a {
    margin: 0 10px;
}

/* ######### Home / Hero ######### */
.hero-section {
    background: radial-gradient(circle at top left, #e3f2ff 0, #f4f6f9 45%, #f4f6f9 100%);
}

.hero-subtitle {
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 90, 209, 0.07);
    font-size: 0.8rem;
    color: #0d6efd;
    margin-right: 6px;
    margin-bottom: 6px;
}

.hero-pill i {
    margin-right: 4px;
}

.hero-avatar {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    border: 4px solid #fff;
}

.hero-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.project-card {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-card:hover {
    transform: translateY(-10px);
}

/* Project images: consistent size (aligns with 480×480 recommendation) */
.project-card .project-img {
    width: 40%;
    min-width: 200px;
    max-height: 240px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .project-card {
        flex-direction: column !important;
    }
    .project-card .project-img {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
        max-height: 220px;
    }
}

.project-tags .badge {
    margin-right: 5px;
}

.contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 90, 209, 0.15) !important;
}

#contactForm .form-control {
    margin-bottom: 15px;
}

#submitMessage {
    margin-top: 15px;
}

.tiles {
    margin-bottom: 5px;
}

.center {
    text-align: center;
}



footer {
    margin-top: auto; /* Push the footer to the bottom */
}

.badge-section {
    text-align: center;
    margin-top: 20px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge {
    background-color: #343a40;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
}

.badge-section h3 {
    margin-bottom: 20px;
}

.my-5 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* ######### Mobile tweaks ######### */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-section h1.display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 0.98rem;
    }

    .badge-section {
        margin-top: 12px;
    }

    .badge-container .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .contact-card {
        margin-bottom: 0.5rem;
    }

    .project-card {
        margin-bottom: 0.75rem;
    }
}