:root {
    --bs-font-sans-serif: "Roboto", sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
}

/* ============================================
   RESET & BASE
   ============================================ */

/* Global reset: box-sizing for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Force remove default margins/paddings */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

/* Base (background + typography from Figma) */
body {
    background: #092B4C;

    /* Body text (16px / 150% / 400) */
    font-weight: 400;
    font-size: 1rem;
    /* 16px */
    line-height: 1.5;
    /* 150% */
    padding-top: 56px
        /* To prevent content from being hidden behind fixed navbar */
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* H1 (36px / 120%) Smaller visually, but semantically a H1. */
h1 {
    font-weight: 400;
    font-size: 2.25rem;
    /* 36px */
    line-height: 1.2;
    /* 120% */
    letter-spacing: 0.02em;
}

/* H2 (40px / 120%) */
h2 {
    font-weight: 400;
    font-size: 2.5rem;
    /* 40px */
    line-height: 1.2;
    /* 120% */
    letter-spacing: 0.02em;
}

/* H4 (24px / 130%) */
h4 {
    font-weight: 400;
    font-size: 1.5rem;
    /* 24px */
    line-height: 1.3;
    /* 130% */
    letter-spacing: 0.02em;
}

/* H5 (20px / 140%) */
h5 {
    font-weight: 400;
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.4;
    /* 140% */
}

/* ============================================
   UTILITIES
   ============================================ */

/* Padding utilities: maintain consistent spacing rhythm across sections.
   .py-64 = 4rem (64px) top+bottom padding, matching Figma design system. */
.py-64 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 1.25rem;
    /* 20px */
}

.pt-20 {
    padding-top: 1.25rem;
    /* 20px */
}

/* Text utilities */
.text-justify {
    text-align: justify;
}

/* Icon helper: brightens dark logos on dark backgrounds */
.icon-dark-mode {
    filter: invert(1) brightness(1.2);
}

/* ============================================
   NAVBAR
   ============================================ */

/* Navbar styling with solid background */
.navbar {
    background-color: #092B4C;
    position: fixed;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Bootstrap button customization */

/* Common brand btn */
.btn-brand {
    --bs-btn-padding-y: 10px;
    --bs-btn-padding-x: 24px;
    --bs-btn-border-radius: 6px;
    min-height: 44px;
}

/*  Primary brand btn */
.btn-brand-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1E90FF;
    --bs-btn-border-color: #1E90FF;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1877d3;
    --bs-btn-hover-border-color: #1877d3;

    --bs-btn-focus-shadow-rgb: 30, 144, 255;
}

/*  Secondary brand btn */
.btn-brand-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, .10);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .16);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .28);

    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

/* Link-style CTA like in Figma */
.btn-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 0;
    min-height: auto;

    background: transparent;
    border: 0;

    color: #fff;
    font-weight: 400;
    text-decoration: none;
}

/* Link-style CTA like in Figma -- Hover */
.btn-link-cta:hover {
    text-decoration: underline;
}

/* Brand name styling for navbar and footer */
.brand-name {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: #FFFFFF;
}

/* ============================================
   SECTIONS
   ============================================ */

/* Card styling */
.card {
    overflow: hidden;
    border-radius: 0rem;
    background-color: #0C3966;
    border: 0;
}

/* Remove border-radius on cards */
.card-img-top {
    border-radius: 0 !important;
}


/* Skill tags in project cards */
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;
    height: 29px;
    border-radius: 4px;

    background: rgba(255, 255, 255, .10);
    color: #fff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}

/* Remove extra side paddings in the protfolio container */
#portfolio.container {
    --bs-gutter-x: 0;
}

/* Make links color white inside contact section */
#contact {
    --bs-link-color: #fff;
    --bs-link-hover-color: #fff;
    --bs-link-color-rgb: 255, 255, 255;
}

#contact a {
    color: var(--bs-link-color);
    text-decoration: none;
}

#contact a:hover,
#contact a:focus {
    text-decoration: underline;
}

/* Inputs: white 10% background */
#contact .form-control,
#contact .form-select,
#contact textarea.form-control {
    background-color: rgba(255, 255, 255, 0.10);
    border: 0 !important;
    box-shadow: none !important;
    color: #fff;

    border-radius: 6px;
    padding: 12px;
}

/* Focus without frame a bit brighter */
#contact .form-control:focus,
#contact .form-select:focus,
#contact textarea.form-control:focus {
    background-color: rgba(255, 255, 255, 0.16);
    border: 0 !important;
    box-shadow: none !important;
    color: #fff;
}

/* Placeholder */
#contact .form-control::placeholder,
#contact textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.60);
    opacity: 1;
}

/* Textarea height to match Figma */
#contact textarea.form-control {
    min-height: 180px;
    resize: none;
}

/* Footer links */
.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(255, 255, 255, .6);
}

/* Icon links */
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Footer Divider */
.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, .18);
}

/* Media query for reassigning x-padding on mobile */
@media (max-width: 575.98px) {
    .container {
        --bs-gutter-x: 40px;
    }
}